diff options
Diffstat (limited to 'alot/utils')
-rw-r--r-- | alot/utils/cached_property.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/utils/cached_property.py b/alot/utils/cached_property.py index 680cd6f4..3ad66413 100644 --- a/alot/utils/cached_property.py +++ b/alot/utils/cached_property.py @@ -34,13 +34,13 @@ _missing = object() -class cached_property(object): +class cached_property: """A decorator that converts a function into a lazy property. The function wrapped is called the first time to retrieve the result and then that calculated result is used the next time you access the value:: - class Foo(object): + class Foo: @cached_property def foo(self): |