enhancementhelp wanted
仓库指标
- Star
- (705 star)
- PR 合并指标
- (PR 指标待抓取)
描述
There are certain pieces of code in some libraries, linters and static analyzers that check things like
if isinstance(attr, property):
do_something()
This is especially important for use in metaclasses.
Obviously this fails with cached property; would it be possible to derive it from property so isinstance/issubclass checks work as expected?