diff --git a/dynamic_rest/bases.py b/dynamic_rest/bases.py index d30eef52..3779dceb 100644 --- a/dynamic_rest/bases.py +++ b/dynamic_rest/bases.py @@ -4,6 +4,7 @@ class DynamicSerializerBase(object): """Base class for all DREST serializers.""" + pass @@ -15,7 +16,7 @@ def resettable_cached_property(func): """ def wrapper(self): - if not hasattr(self, '_resettable_cached_properties'): + if not hasattr(self, "_resettable_cached_properties"): self._resettable_cached_properties = {} if func.__name__ not in self._resettable_cached_properties: self._resettable_cached_properties[func.__name__] = func(self) @@ -32,7 +33,7 @@ def cacheable_object(cls): """ def reset(self): - if hasattr(self, '_resettable_cached_properties'): + if hasattr(self, "_resettable_cached_properties"): self._resettable_cached_properties = {} cls.reset = reset @@ -56,4 +57,4 @@ def root(self): @resettable_cached_property def context(self): - return getattr(self.root, '_context', {}) + return getattr(self.root, "_context", {})