Closed mikeyk closed 2 years ago
I'm not able to repro the problem, and I can't think of any reason why this behavior would have changed recently.
Is it possible that you have a custom enum
module or stub installed? If you right click on Enum
and choose "Go to Declaration", where does it take you?
Ah, that was exactly it @erictraut; our local version of typeshed had worked until the latest Pylance update and then the combination started showing that metaclass error; updating typeshed definitions fixes the issue on latest Pylance. Thank you!
Environment data
Code Snippet
Note that this is the order suggested by the Python docs.
Expected behavior
No pylance warning given for snippet above.
Actual behavior
As of the 2022.6.10 release, this now reports:
2022.6.11 pre-release exhibits the same issue. This previously worked in 2022.6.0.