Skip to content

Commit 388fc9c

Browse files
committed
improved pyi
1 parent fb5876e commit 388fc9c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/__init__.pyi

+9-3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ class ErrorInitTypeBlocks(RuntimeError):
3131
def with_traceback(self, tb: Exception) -> Exception: ...
3232
def __setstate__(self) -> None: ...
3333

34+
35+
class NonUniqueError(RuntimeError):
36+
def __init__(self, *args: tp.Any, **kwargs: tp.Any) -> None: ...
37+
def with_traceback(self, tb: Exception) -> Exception: ...
38+
def __setstate__(self) -> None: ...
39+
3440
class ArrayGO:
3541
values: np.ndarray
3642
def __init__(
@@ -110,7 +116,7 @@ class BlockIndex:
110116

111117

112118
class FrozenAutoMap:
113-
def __init__(self, labels: tp.Iterable[_TLabel] | np.ndarray, /,) -> None: ...
119+
def __init__(self, labels: tp.Iterable[_TLabel] | np.ndarray = (), /,) -> None: ...
114120
def get(self, __key: _TLabel, /,) -> int: ...
115121
def keys(self) -> tp.Iterator[_TLabel]: ...
116122
def items(self) -> tp.Iterator[tuple[_TLabel, int]]: ...
@@ -133,9 +139,9 @@ class FrozenAutoMap:
133139

134140

135141
class AutoMap(FrozenAutoMap):
136-
def __init__(self, labels: tp.Iterable[_TLabel] | np.ndarray, /,) -> None: ...
142+
def __init__(self, labels: tp.Iterable[_TLabel] | np.ndarray = (), /,) -> None: ...
137143
def __ior__(self) -> tp.Any: ...
138-
def add(self, __key: int) -> None: ...
144+
def add(self, __key: _TLabel) -> None: ...
139145
def update(self, __keys: tp.Iterable[_TLabel] | np.ndarray) -> None: ...
140146

141147

0 commit comments

Comments
 (0)