Message328136
I agree with Serhiy.
For static hinting, `@property` should be enough.
I think tools like mypy should support this pattern:
class MyABC(metaclass=ABCMeta):
@property
@abstractmethod
def myprop(self):
...
class MyConcrete(MyABC):
@cached_property
def myprop(self):
return self._some_heavy_work() |
|
Date |
User |
Action |
Args |
2018-10-20 13:38:08 | methane | set | recipients:
+ methane, serhiy.storchaka, mwilbz |
2018-10-20 13:38:08 | methane | set | messageid: <1540042688.34.0.788709270274.issue34995@psf.upfronthosting.co.za> |
2018-10-20 13:38:08 | methane | link | issue34995 messages |
2018-10-20 13:38:08 | methane | create | |
|