pydanny/cached-property

Can cached_property be a subclass of property?

Open

#26 创建于 2015年10月8日

在 GitHub 查看
 (3 评论) (1 反应) (1 负责人)Python (79 fork)github user discovery
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?

贡献者指南