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.
1 parent 3e4e809 commit a732e7aCopy full SHA for a732e7a
test-data/unit/pythoneval.test
@@ -1713,7 +1713,7 @@ f: m.F
1713
reveal_type(f)
1714
1715
[file m.pyi]
1716
-from typing import Type
+from typing import Type, Callable
1717
from typing_extensions import Literal, TypeAlias
1718
1719
Foo = Literal[1, 2]
@@ -1738,6 +1738,11 @@ reveal_type(C)
1738
D: TypeAlias = type[int] | str
1739
E = str | type[int]
1740
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]
1746
[out]
1747
m.pyi:5: note: Revealed type is "typing._SpecialForm"
1748
m.pyi:22: note: Revealed type is "typing._SpecialForm"
0 commit comments