Commit 37b22447 authored by Lars Kruse's avatar Lars Kruse
Browse files

fix(settings): add lazy-evaluation support for Python 3.7

The previous code worked only for Python 3.9 (or maybe even 3.8).
parent df9a9dcd
Pipeline #3117 passed with stages
in 4 minutes and 22 seconds
......@@ -26,7 +26,7 @@ class LazySettingsResolver:
except AttributeError:
# "cached_property" was not available before Python 3.8
def lazy_resolver(func):
return property(functools.lru_cache(func))
return property(functools.lru_cache()(func))
self._attribute_names = set()
# set the attribute values or (for callables) a lazy evaluator
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment