Zookeeper should pick up fields from annotated @property definitions
AdamHillier opened this issue · 2 comments
AdamHillier commented
The work-around for now is to do:
field_name: SomeType
@property
def field_name(self):
return ...
jneeven commented
A nice solution for this would be to have some @configurable_property
decorator (as suggested by @lgeiger )
AdamHillier commented
This has been resolved by #109.
Field
can be used as a decorator like so:
@Field
def name(self) -> int
return self.a * 2