Enum type matching issues in pyright 1.1.363
#7922
Labels
addressed in next version
Issue is fixed and will appear in next published version
bug
Something isn't working
regression
Describe the bug
We started to see a new type error in pyright
1.1.363
. When type matching against enums using amatch
statement under some circumstances we see a false positive lack-of-exhaustiveness error.I imagine it's related to this change:
I'm not sure if our original code is sound or not – however it's certainly a very convenient pattern.
Code or Screenshots
VS Code extension or command-line
pyright
1.1.363
via the CLIThe text was updated successfully, but these errors were encountered: