1
1
# NOTE: This private(!) module only exists in `if typing.TYPE_CHECKING: ...` and in `.pyi` stubs
2
2
3
3
from os import PathLike
4
- from collections .abc import Callable , Sequence
4
+ from collections .abc import Sequence
5
5
from types import TracebackType
6
6
from typing import IO , Any , Literal , Protocol , TypeAlias , type_check_only
7
7
from typing_extensions import LiteralString , Self , TypeVar
@@ -28,12 +28,6 @@ __all__ = [
28
28
"OrderCF" ,
29
29
"OrderKACF" ,
30
30
"ToRNG" ,
31
- "Untyped" ,
32
- "UntypedArray" ,
33
- "UntypedCallable" ,
34
- "UntypedDict" ,
35
- "UntypedList" ,
36
- "UntypedTuple" ,
37
31
"_FortranFunction" ,
38
32
]
39
33
@@ -63,14 +57,6 @@ class _FortranFunction(Protocol):
63
57
def typecode (self , / ) -> LiteralString : ...
64
58
def __call__ (self , / , * args : object , ** kwargs : object ) -> object : ...
65
59
66
- # placeholders for missing annotations
67
- Untyped : TypeAlias = Any
68
- UntypedTuple : TypeAlias = tuple [Untyped , ...]
69
- UntypedList : TypeAlias = list [Untyped ]
70
- UntypedDict : TypeAlias = dict [Untyped , Untyped ]
71
- UntypedCallable : TypeAlias = Callable [..., Untyped ]
72
- UntypedArray : TypeAlias = onp .Array [Any , np .generic ]
73
-
74
60
# I/O
75
61
_ByteSOrStr = TypeVar ("_ByteSOrStr" , bytes , str )
76
62
FileName : TypeAlias = str | PathLike [str ]
0 commit comments