@@ -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+
3440class ArrayGO :
3541 values : np .ndarray
3642 def __init__ (
@@ -110,7 +116,7 @@ class BlockIndex:
110116
111117
112118class 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
135141class 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