Skip to content

Decide how to handle cached properties #139

@exonian

Description

@exonian

#135 and #138 provide support for decorated functions, and these mostly work consistently (the function is treated the same as a regular method, and any decorators are shown in its source code).

However, I noticed that there's a case that's worked out differently. I wrote the support on the static site version of the project first, and one example I tested was a function using @cached_property. On that version, the function got treated as a method:
uses_datetime_field

Whereas in the regular version it now gets included, but gets treated as a property:
cached_property

I'm not sure which I think is right. Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions