Pyright doesn't recognize the __members__
attribute of enumeration class
#759
Labels
addressed in next version
Issue is fixed and will appear in next published version
enhancement request
New feature or request
Describe the bug
According to Python official document (https://docs.python.org/3.8/library/enum.html#iteration), there is an attribute
__members__
of every enumeration class that provides all names defined in the enumeration class. Since it appears in the official document, we should consider it a public API. But Pyright doesn't seem to recognize the__members__
attribute, as elaborated in the following screenshot.To Reproduce
Expected behavior
Pyright should be able to recoginize
__members__
as a mapping.Screenshots or Code
VS Code extension or command-line
Pyright is run as VS Code extension.
Extension version 1.1.44
The text was updated successfully, but these errors were encountered: