Pass container to attribute_getter

This commit is contained in:
Teemu Rytilahti 2024-12-01 02:10:22 +01:00
parent 330763bc83
commit 3c437fb297

View File

@ -195,7 +195,7 @@ class Feature:
if isinstance(getter, str):
return getattr(self._container, getter)
if callable(getter):
return getter()
return getter(self._container)
raise ValueError("Invalid getter: %s", getter) # pragma: no cover
@property