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.
testNarrowingOptionalEqualsNone
1 parent 3e5bdf9 commit 78dbff2Copy full SHA for 78dbff2
test-data/unit/check-narrowing.test
@@ -1375,9 +1375,9 @@ else:
1375
if val in (None,):
1376
reveal_type(val) # N: Revealed type is "Union[__main__.A, None]"
1377
else:
1378
- reveal_type(val) # N: Revealed type is "Union[__main__.A, None]"
+ reveal_type(val) # N: Revealed type is "__main__.A"
1379
if val not in (None,):
1380
1381
1382
1383
[builtins fixtures/primitives.pyi]
0 commit comments