Skip to content

Commit faf7d98

Browse files
committed
corrected pyi
1 parent 6f3fbd3 commit faf7d98

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/__init__.pyi

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import typing as tp
2+
import datetime
23

34
import numpy as np # type: ignore
45

56
_T = tp.TypeVar('_T')
67

78
__version__: str
89

9-
TLabel = tp.Union[
10+
_TLabel = tp.Union[
1011
tp.Hashable,
1112
int,
1213
bool,
@@ -22,7 +23,7 @@ TLabel = tp.Union[
2223
np.timedelta64,
2324
datetime.date,
2425
datetime.datetime,
25-
tp.Tuple['TLabel'],
26+
tp.Tuple['_TLabel'],
2627
]
2728

2829
class ErrorInitTypeBlocks(RuntimeError):
@@ -122,7 +123,7 @@ def count_iteration(__iterable: tp.Iterable) -> int: ...
122123

123124
def immutable_filter(__array: np.ndarray) -> np.ndarray: ...
124125
def mloc(__array: np.ndarray) -> int: ...
125-
def name_filter(__name: TLabel) -> TLabel: ...
126+
def name_filter(__name: _TLabel) -> _TLabel: ...
126127
def shape_filter(__array: np.ndarray) -> np.ndarray: ...
127128
def column_2d_filter(__array: np.ndarray) -> np.ndarray: ...
128129
def column_1d_filter(__array: np.ndarray) -> np.ndarray: ...
@@ -131,7 +132,7 @@ def array_deepcopy(__array: np.ndarray, memo: tp.Optional[tp.Dict[int, tp.Any]])
131132
def resolve_dtype(__d1: np.dtype, __d2: np.dtype) -> np.dtype: ...
132133
def resolve_dtype_iter(__dtypes: tp.Iterable[np.dtype]) -> np.dtype: ...
133134
def isna_element(__value: tp.Any, include_none: bool = True) -> bool: ...
134-
def dtype_from_element(__value: tp.Optional[TLabel]) -> np.dtype: ...
135+
def dtype_from_element(__value: tp.Optional[_TLabel]) -> np.dtype: ...
135136
def get_new_indexers_and_screen(indexers: np.ndarray, positions: np.ndarray) -> tp.Tuple[np.ndarray, np.ndarray]: ...
136137

137138
def first_true_1d(__array: np.ndarray, *, forward: bool) -> int: ...

0 commit comments

Comments
 (0)