From 667b12830c68ef38c1aa070f040a9a93b9961e29 Mon Sep 17 00:00:00 2001 From: Owllex Date: Fri, 15 Apr 2022 13:56:37 -0700 Subject: [PATCH] Revert back to using isinstance. --- evennia/typeclasses/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/typeclasses/models.py b/evennia/typeclasses/models.py index ca2be2fc03..44677aff05 100644 --- a/evennia/typeclasses/models.py +++ b/evennia/typeclasses/models.py @@ -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: