Skip to content

Commit a732e7a

Browse files
committed
Add test case covering #14158
1 parent 3e4e809 commit a732e7a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test-data/unit/pythoneval.test

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1713,7 +1713,7 @@ f: m.F
17131713
reveal_type(f)
17141714

17151715
[file m.pyi]
1716-
from typing import Type
1716+
from typing import Type, Callable
17171717
from typing_extensions import Literal, TypeAlias
17181718

17191719
Foo = Literal[1, 2]
@@ -1738,6 +1738,11 @@ reveal_type(C)
17381738
D: TypeAlias = type[int] | str
17391739
E = str | type[int]
17401740
F: TypeAlias = str | type[int]
1741+
1742+
CU1 = int | Callable[[], str | bool]
1743+
CU2: TypeAlias = int | Callable[[], str | bool]
1744+
CU3 = int | Callable[[str | bool], str]
1745+
CU4: TypeAlias = int | Callable[[str | bool], str]
17411746
[out]
17421747
m.pyi:5: note: Revealed type is "typing._SpecialForm"
17431748
m.pyi:22: note: Revealed type is "typing._SpecialForm"

0 commit comments

Comments
 (0)