-
🗿 @gitaarikOk added it
-
In case anyone wants a version that also clears from
cached_propertydeclarations on parent classes, use this one instead:def invalidate_cached_properties(self): for kls in self.__class__.__mro__: for key, value in self.__dict__.items(): if isinstance(value, cached_property): self.__dict__.pop(key, None)Edited by Cory
Please register or sign in to comment