@@ -21,7 +21,7 @@ class AnvilDimension:
2121 layer_names : collections .abc .Iterable [str ],
2222 mcc : bool = False ,
2323 ) -> None : ...
24- def all_chunk_coords (self ) -> typing .Iterator [tuple [int , int ]]:
24+ def all_chunk_coords (self ) -> collections . abc .Iterator [tuple [int , int ]]:
2525 """
2626 Get an iterator for all the chunks that exist in this dimension.
2727 External Read::SharedReadWrite lock required.
@@ -34,7 +34,7 @@ class AnvilDimension:
3434 External ReadWrite::SharedReadOnly lock required.
3535 """
3636
37- def delete_chunk (self , cx : int , cz : int ) -> None :
37+ def delete_chunk (self , cx : typing . SupportsInt , cz : typing . SupportsInt ) -> None :
3838 """
3939 Delete all data for the given chunk.
4040 External ReadWrite::SharedReadWrite lock required.
@@ -48,7 +48,9 @@ class AnvilDimension:
4848 External ReadWrite:Unique lock required.
4949 """
5050
51- def get_chunk_data (self , cx : int , cz : int ) -> dict [str , amulet .nbt .NamedTag ]:
51+ def get_chunk_data (
52+ self , cx : typing .SupportsInt , cz : typing .SupportsInt
53+ ) -> dict [str , amulet .nbt .NamedTag ]:
5254 """
5355 Get the data for a chunk
5456 External Read::SharedReadWrite lock required.
@@ -62,7 +64,7 @@ class AnvilDimension:
6264 // External ReadWrite::SharedReadWrite lock required if calling ReadWrite methods on AnvilDimensionLayer.
6365 """
6466
65- def has_chunk (self , cx : int , cz : int ) -> bool :
67+ def has_chunk (self , cx : typing . SupportsInt , cz : typing . SupportsInt ) -> bool :
6668 """
6769 Check if a chunk exists.
6870 External Read::SharedReadWrite lock required.
@@ -85,8 +87,8 @@ class AnvilDimension:
8587
8688 def set_chunk_data (
8789 self ,
88- cx : int ,
89- cz : int ,
90+ cx : typing . SupportsInt ,
91+ cz : typing . SupportsInt ,
9092 data_layers : collections .abc .Iterable [tuple [str , amulet .nbt .NamedTag ]],
9193 ) -> None :
9294 """
@@ -129,14 +131,14 @@ class AnvilDimensionLayer:
129131 """
130132
131133 def __init__ (self , directory : str , mcc : bool = False ) -> None : ...
132- def all_chunk_coords (self ) -> typing .Iterator [tuple [int , int ]]:
134+ def all_chunk_coords (self ) -> collections . abc .Iterator [tuple [int , int ]]:
133135 """
134136 An iterator of all chunk coordinates in this layer.
135137 External Read::SharedReadWrite lock required.
136138 External Read::SharedReadOnly lock optional.
137139 """
138140
139- def all_region_coords (self ) -> typing .Iterator [tuple [int , int ]]:
141+ def all_region_coords (self ) -> collections . abc .Iterator [tuple [int , int ]]:
140142 """
141143 An iterator of all region coordinates in this layer.
142144 External Read::SharedReadWrite lock required.
@@ -149,7 +151,7 @@ class AnvilDimensionLayer:
149151 External ReadWrite::SharedReadOnly lock required.
150152 """
151153
152- def delete_chunk (self , cx : int , cz : int ) -> None :
154+ def delete_chunk (self , cx : typing . SupportsInt , cz : typing . SupportsInt ) -> None :
153155 """
154156 Delete the chunk data from this layer.
155157 External ReadWrite::SharedReadWrite lock required.
@@ -163,15 +165,17 @@ class AnvilDimensionLayer:
163165 External ReadWrite:Unique lock required.
164166 """
165167
166- def get_chunk_data (self , cx : int , cz : int ) -> amulet .nbt .NamedTag :
168+ def get_chunk_data (
169+ self , cx : typing .SupportsInt , cz : typing .SupportsInt
170+ ) -> amulet .nbt .NamedTag :
167171 """
168172 Get a NamedTag of a chunk from the database.
169173 Will raise ChunkDoesNotExist if the region or chunk does not exist
170174 External Read::SharedReadWrite lock required.
171175 """
172176
173177 def get_region (
174- self , rx : int , rz : int , create : bool = False
178+ self , rx : typing . SupportsInt , rz : typing . SupportsInt , create : bool = False
175179 ) -> amulet .anvil .region .AnvilRegion :
176180 """
177181 Get an AnvilRegion instance from chunk coordinates it contains. This must not be stored long-term.
@@ -181,7 +185,7 @@ class AnvilDimensionLayer:
181185 """
182186
183187 def get_region_at_chunk (
184- self , cx : int , cz : int , create : bool = False
188+ self , cx : typing . SupportsInt , cz : typing . SupportsInt , create : bool = False
185189 ) -> amulet .anvil .region .AnvilRegion :
186190 """
187191 Get an AnvilRegion instance from chunk coordinates it contains. This must not be stored long-term.
@@ -190,21 +194,23 @@ class AnvilDimensionLayer:
190194 External ReadWrite::SharedReadWrite lock required if calling ReadWrite methods on AnvilRegion.
191195 """
192196
193- def has_chunk (self , cx : int , cz : int ) -> bool :
197+ def has_chunk (self , cx : typing . SupportsInt , cz : typing . SupportsInt ) -> bool :
194198 """
195199 Check if the chunk has data in this layer.
196200 External Read::SharedReadWrite lock required.
197201 External Read::SharedReadOnly lock optional.
198202 """
199203
200- def has_region (self , rx : int , rz : int ) -> bool :
204+ def has_region (self , rx : typing . SupportsInt , rz : typing . SupportsInt ) -> bool :
201205 """
202206 Check if a region file exists in this layer at given the coordinates.
203207 External Read::SharedReadWrite lock required.
204208 External Read::SharedReadOnly lock optional.
205209 """
206210
207- def has_region_at_chunk (self , cx : int , cz : int ) -> bool :
211+ def has_region_at_chunk (
212+ self , cx : typing .SupportsInt , cz : typing .SupportsInt
213+ ) -> bool :
208214 """
209215 Check if a region file exists in this layer that contains the given chunk.
210216 External Read::SharedReadWrite lock required.
@@ -218,7 +224,9 @@ class AnvilDimensionLayer:
218224 External Read:SharedReadWrite lock required.
219225 """
220226
221- def set_chunk_data (self , cx : int , cz : int , tag : amulet .nbt .NamedTag ) -> None :
227+ def set_chunk_data (
228+ self , cx : typing .SupportsInt , cz : typing .SupportsInt , tag : amulet .nbt .NamedTag
229+ ) -> None :
222230 """
223231 Set the chunk data for this layer.
224232 External ReadWrite::SharedReadWrite lock required.
0 commit comments