Revert back to using isinstance.

This commit is contained in:
Owllex 2022-04-15 13:56:37 -07:00
parent 014ae2e6e1
commit 667b12830c

View file

@ -332,7 +332,7 @@ class TypedObject(SharedMemoryModel):
by fetching them once.
"""
for propkey, prop in self.__class__.__dict__.items():
if inherits_from(prop, AttributeProperty) or inherits_from(prop, TagProperty):
if isinstance(prop, (AttributeProperty, TagProperty)):
try:
getattr(self, propkey)
except Exception: