We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83c48a2 commit eb9f87cCopy full SHA for eb9f87c
test-data/unit/check-enum.test
@@ -2242,7 +2242,8 @@ class E(enum.IntEnum):
2242
2243
def do_check(value: E) -> None:
2244
reveal_type(value) # N: Revealed type is "__main__.E"
2245
- if value is E.A: # this is a nonmember check, not an emum member check which should narrow the value
+ # this is a nonmember check, not an emum member check, and it should not narrow the value
2246
+ if value is E.A:
2247
return
2248
2249
0 commit comments