@@ -31,6 +31,12 @@ class ErrorInitTypeBlocks(RuntimeError):
31
31
def with_traceback (self , tb : Exception ) -> Exception : ...
32
32
def __setstate__ (self ) -> None : ...
33
33
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
+
34
40
class ArrayGO :
35
41
values : np .ndarray
36
42
def __init__ (
@@ -110,7 +116,7 @@ class BlockIndex:
110
116
111
117
112
118
class FrozenAutoMap :
113
- def __init__ (self , labels : tp .Iterable [_TLabel ] | np .ndarray , / ,) -> None : ...
119
+ def __init__ (self , labels : tp .Iterable [_TLabel ] | np .ndarray = () , / ,) -> None : ...
114
120
def get (self , __key : _TLabel , / ,) -> int : ...
115
121
def keys (self ) -> tp .Iterator [_TLabel ]: ...
116
122
def items (self ) -> tp .Iterator [tuple [_TLabel , int ]]: ...
@@ -133,9 +139,9 @@ class FrozenAutoMap:
133
139
134
140
135
141
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 : ...
137
143
def __ior__ (self ) -> tp .Any : ...
138
- def add (self , __key : int ) -> None : ...
144
+ def add (self , __key : _TLabel ) -> None : ...
139
145
def update (self , __keys : tp .Iterable [_TLabel ] | np .ndarray ) -> None : ...
140
146
141
147
0 commit comments