-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Expand file tree
/
Copy path__init__.pyi
More file actions
63 lines (57 loc) · 2.23 KB
/
__init__.pyi
File metadata and controls
63 lines (57 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
from collections.abc import Callable, Generator, Iterable, Mapping, Sequence
from typing import Any, TypeVar, overload
from typing import Self
from numpy.typing import NDArray
from .deprecation import ( # noqa: F401, re-exported API
deprecated as deprecated,
warn_deprecated as warn_deprecated,
rename_parameter as rename_parameter,
delete_parameter as delete_parameter,
make_keyword_only as make_keyword_only,
deprecate_method_override as deprecate_method_override,
deprecate_privatize_attribute as deprecate_privatize_attribute,
suppress_matplotlib_deprecation_warning as suppress_matplotlib_deprecation_warning,
MatplotlibDeprecationWarning as MatplotlibDeprecationWarning,
)
_T = TypeVar("_T")
class _Unset: ...
class classproperty(Any):
def __init__(
self,
fget: Callable[[_T], Any],
fset: None = ...,
fdel: None = ...,
doc: str | None = None,
): ...
@overload
def __get__(self, instance: None, owner: None) -> Self: ...
@overload
def __get__(self, instance: object, owner: type[object]) -> Any: ...
@property
def fget(self) -> Callable[[_T], Any]: ...
def check_isinstance(
types: type | tuple[type | None, ...], /, **kwargs: Any
) -> None: ...
def check_in_list(
values: Sequence[Any], /, *, _print_supported_values: bool = ..., **kwargs: Any
) -> None: ...
def check_shape(shape: tuple[int | None, ...], /, **kwargs: NDArray) -> None: ...
def getitem_checked(
mapping: Mapping[Any, _T], /, _error_cls: type[Exception], **kwargs: Any
) -> _T: ...
def caching_module_getattr(cls: type) -> Callable[[str], Any]: ...
@overload
def define_aliases(
alias_d: dict[str, list[str]], cls: None = ...
) -> Callable[[type[_T]], type[_T]]: ...
@overload
def define_aliases(alias_d: dict[str, list[str]], cls: type[_T]) -> type[_T]: ...
def select_matching_signature(
funcs: list[Callable], *args: Any, **kwargs: Any
) -> Any: ...
def nargs_error(name: str, takes: int | str, given: int) -> TypeError: ...
def kwarg_error(name: str, kw: str | Iterable[str]) -> TypeError: ...
def recursive_subclasses(cls: type) -> Generator[type, None, None]: ...
def warn_external(
message: str | Warning, category: type[Warning] | None = ...
) -> None: ...