larq/zookeeper

Zookeeper should pick up fields from annotated @property definitions

AdamHillier opened this issue · 2 comments

The work-around for now is to do:

field_name: SomeType

@property
def field_name(self):
    return ...

A nice solution for this would be to have some @configurable_property decorator (as suggested by @lgeiger )

This has been resolved by #109.

Field can be used as a decorator like so:

@Field
def name(self) -> int
    return self.a * 2