-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc direasy
Description
The documentation for types.MemberDescriptorType in the types module indicate that it is used in extension modules. This is true, but fails to mention the other common use of the class, as the type of a slot.
For those who aren't aware, if we define a class like so:
class Foo:
__slots__ = ('bar',)
then it will create an attribute bar on the class. Calling type(Foo.bar) will return types.MemberDescriptorType.
Linked PRs
Metadata
Metadata
Assignees
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc direasy