Skip to content

Commit eb9f87c

Browse files
committed
update comment
1 parent 83c48a2 commit eb9f87c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test-data/unit/check-enum.test

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2242,7 +2242,8 @@ class E(enum.IntEnum):
22422242

22432243
def do_check(value: E) -> None:
22442244
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
2245+
# this is a nonmember check, not an emum member check, and it should not narrow the value
2246+
if value is E.A:
22462247
return
22472248

22482249
reveal_type(value) # N: Revealed type is "__main__.E"

0 commit comments

Comments
 (0)