-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Labels
documentationtopic-descriptorsProperties, class vs. instance attributesProperties, class vs. instance attributes
Description
Documentation
Based on the discussions in #2266 and #244, it seems MyPy supports annotations for descriptors, but there doesn't seem to be anything in the documentation about this or how to properly annotate them.
Annotating these isn't obvious, and some best practice for common usages would be helpful.
For example, one common paradigm for generic data descriptors is to return self when called from a class (instance is None
), and I'm struggling to find the best way to annotate that.
Zloooy and smheidrich
Metadata
Metadata
Assignees
Labels
documentationtopic-descriptorsProperties, class vs. instance attributesProperties, class vs. instance attributes