Skip to content

Commit

Permalink
⚰️ _typing: remove Untyped*
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenham committed Dec 30, 2024
1 parent 5035b58 commit b79426a
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions scipy-stubs/_typing.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# NOTE: This private(!) module only exists in `if typing.TYPE_CHECKING: ...` and in `.pyi` stubs

from os import PathLike
from collections.abc import Callable, Sequence
from collections.abc import Sequence
from types import TracebackType
from typing import IO, Any, Literal, Protocol, TypeAlias, type_check_only
from typing_extensions import LiteralString, Self, TypeVar
Expand All @@ -28,12 +28,6 @@ __all__ = [
"OrderCF",
"OrderKACF",
"ToRNG",
"Untyped",
"UntypedArray",
"UntypedCallable",
"UntypedDict",
"UntypedList",
"UntypedTuple",
"_FortranFunction",
]

Expand Down Expand Up @@ -63,14 +57,6 @@ class _FortranFunction(Protocol):
def typecode(self, /) -> LiteralString: ...
def __call__(self, /, *args: object, **kwargs: object) -> object: ...

# placeholders for missing annotations
Untyped: TypeAlias = Any
UntypedTuple: TypeAlias = tuple[Untyped, ...]
UntypedList: TypeAlias = list[Untyped]
UntypedDict: TypeAlias = dict[Untyped, Untyped]
UntypedCallable: TypeAlias = Callable[..., Untyped]
UntypedArray: TypeAlias = onp.Array[Any, np.generic]

# I/O
_ByteSOrStr = TypeVar("_ByteSOrStr", bytes, str)
FileName: TypeAlias = str | PathLike[str]
Expand Down

0 comments on commit b79426a

Please sign in to comment.