Skip to content

Commit 5cc0f23

Browse files
committed
Update test with changed behavior
1 parent 21d8078 commit 5cc0f23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test-data/unit/check-optional.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ reveal_type(z2) # N: Revealed type is "Union[Literal[0], builtins.str, None]"
119119

120120
[case testLambdaReturningNone]
121121
f = lambda: None
122-
x = f()
123-
reveal_type(x) # N: Revealed type is "None"
122+
x = f() # E: Function does not return a value (it only ever returns None)
123+
reveal_type(x) # N: Revealed type is "Any"
124124

125125
[case testNoneArgumentType]
126126
def f(x: None) -> None: pass

0 commit comments

Comments
 (0)