Skip to content

Commit 516cef7

Browse files
committed
Add reveal_type in test
1 parent cf33caa commit 516cef7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test-data/unit/check-inference.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3976,5 +3976,6 @@ class Mapping(Generic[_K, _V]):
39763976

39773977
def check(mapping: Mapping[str, _T]) -> None:
39783978
ok1 = mapping.get("", "")
3979+
reveal_type(ok1) # N: Revealed type is "Union[_T`-1, builtins.str]"
39793980
ok2: Union[_T, str] = mapping.get("", "")
39803981
[builtins fixtures/tuple.pyi]

0 commit comments

Comments
 (0)