@@ -40,48 +40,69 @@ class SectionArrayMap:
4040
4141 def __contains__ (self , arg0 : typing .SupportsInt ) -> bool : ...
4242 def __delitem__ (self , arg0 : typing .SupportsInt ) -> None : ...
43- def __eq__ (self , arg0 : typing .Any ) -> bool | types .NotImplementedType : ...
43+ def __eq__ (self , other : typing .Any ) -> bool | types .NotImplementedType : ...
4444 def __getitem__ (
4545 self , arg0 : typing .SupportsInt
4646 ) -> numpy .typing .NDArray [numpy .uint32 ]: ...
4747 def __hash__ (self ) -> int : ...
4848 def __init__ (
4949 self ,
5050 array_shape : tuple [typing .SupportsInt , typing .SupportsInt , typing .SupportsInt ],
51- default_array : (
52- typing .SupportsInt
53- | amulet .core .chunk .component .section_array_map .IndexArray3D
54- | collections .abc .Buffer
55- ),
51+ default_array : typing .SupportsInt | IndexArray3D | collections .abc .Buffer ,
5652 ) -> None : ...
5753 def __iter__ (self ) -> collections .abc .Iterator [int ]: ...
5854 def __len__ (self ) -> int : ...
5955 def __setitem__ (
60- self ,
61- arg0 : typing .SupportsInt ,
62- arg1 : (
63- amulet .core .chunk .component .section_array_map .IndexArray3D
64- | collections .abc .Buffer
65- ),
56+ self , arg0 : typing .SupportsInt , arg1 : IndexArray3D | collections .abc .Buffer
6657 ) -> None : ...
58+ @typing .overload
6759 def get (
68- self ,
69- key : typing .SupportsInt ,
70- default : numpy .typing .NDArray [numpy .uint32 ] | None = None ,
60+ self , key : typing .SupportsInt
7161 ) -> numpy .typing .NDArray [numpy .uint32 ] | None : ...
62+ @typing .overload
63+ def get (
64+ self , key : typing .SupportsInt , default : numpy .typing .NDArray [numpy .uint32 ]
65+ ) -> numpy .typing .NDArray [numpy .uint32 ]: ...
66+ @typing .overload
67+ def get [T ](
68+ self , key : typing .SupportsInt , default : T
69+ ) -> numpy .typing .NDArray [numpy .uint32 ] | T : ...
7270 def items (
7371 self ,
7472 ) -> collections .abc .ItemsView [int , numpy .typing .NDArray [numpy .uint32 ]]: ...
7573 def keys (self ) -> collections .abc .KeysView [int ]: ...
74+ @typing .overload
75+ def pop (self , key : typing .SupportsInt ) -> numpy .typing .NDArray [numpy .uint32 ]: ...
76+ @typing .overload
7677 def pop (
77- self , key : typing .SupportsInt , default : numpy .typing .NDArray [numpy .uint32 ] = ...
78+ self , key : typing .SupportsInt , default : numpy .typing .NDArray [numpy .uint32 ]
7879 ) -> numpy .typing .NDArray [numpy .uint32 ]: ...
80+ @typing .overload
81+ def pop [T ](
82+ self , key : typing .SupportsInt , default : T
83+ ) -> numpy .typing .NDArray [numpy .uint32 ] | T : ...
7984 def popitem (self ) -> tuple [int , numpy .typing .NDArray [numpy .uint32 ]]: ...
8085 def populate (self , arg0 : typing .SupportsInt ) -> None : ...
86+ @typing .overload
8187 def setdefault (
82- self , arg0 : typing .SupportsInt , arg1 : numpy .typing .NDArray [numpy .uint32 ] | None
83- ) -> numpy .typing .NDArray [numpy .uint32 ] | None : ...
84- def update (self , other : typing .Any = (), ** kwargs : typing .Any ) -> None : ...
88+ self , key : typing .SupportsInt
89+ ) -> numpy .typing .NDArray [numpy .uint32 ]: ...
90+ @typing .overload
91+ def setdefault (
92+ self , key : typing .SupportsInt , default : numpy .typing .NDArray [numpy .uint32 ]
93+ ) -> numpy .typing .NDArray [numpy .uint32 ]: ...
94+ def update (
95+ self ,
96+ other : (
97+ collections .abc .Mapping [
98+ typing .SupportsInt , numpy .typing .NDArray [numpy .uint32 ]
99+ ]
100+ | collections .abc .Iterable [
101+ tuple [typing .SupportsInt , numpy .typing .NDArray [numpy .uint32 ]]
102+ ]
103+ ) = (),
104+ ** kwargs : numpy .typing .NDArray [numpy .uint32 ],
105+ ) -> None : ...
85106 def values (
86107 self ,
87108 ) -> collections .abc .ValuesView [numpy .typing .NDArray [numpy .uint32 ]]: ...
@@ -91,10 +112,5 @@ class SectionArrayMap:
91112 def default_array (self ) -> int | numpy .ndarray : ...
92113 @default_array .setter
93114 def default_array (
94- self ,
95- arg1 : (
96- typing .SupportsInt
97- | amulet .core .chunk .component .section_array_map .IndexArray3D
98- | collections .abc .Buffer
99- ),
115+ self , arg1 : typing .SupportsInt | IndexArray3D | collections .abc .Buffer
100116 ) -> None : ...
0 commit comments