@@ -183,7 +183,7 @@ const mp_obj_property_t displayio_group_y_obj = {
183
183
MP_ROM_NONE },
184
184
};
185
185
186
- //| def append(self, layer: Union[vectorio.VectorShape , Group, TileGrid]) -> None:
186
+ //| def append(self, layer: Union[vectorio.Circle, vectorio.Rectangle, vectorio.Polygon , Group, TileGrid]) -> None:
187
187
//| """Append a layer to the group. It will be drawn above other layers."""
188
188
//| ...
189
189
//|
@@ -194,7 +194,7 @@ STATIC mp_obj_t displayio_group_obj_append(mp_obj_t self_in, mp_obj_t layer) {
194
194
}
195
195
MP_DEFINE_CONST_FUN_OBJ_2 (displayio_group_append_obj , displayio_group_obj_append );
196
196
197
- //| def insert(self, index: int, layer: Union[vectorio.VectorShape , Group, TileGrid]) -> None:
197
+ //| def insert(self, index: int, layer: Union[vectorio.Circle, vectorio.Rectangle, vectorio.Polygon , Group, TileGrid]) -> None:
198
198
//| """Insert a layer into the group."""
199
199
//| ...
200
200
//|
@@ -210,7 +210,7 @@ STATIC mp_obj_t displayio_group_obj_insert(mp_obj_t self_in, mp_obj_t index_obj,
210
210
MP_DEFINE_CONST_FUN_OBJ_3 (displayio_group_insert_obj , displayio_group_obj_insert );
211
211
212
212
213
- //| def index(self, layer: Union[vectorio.VectorShape , Group, TileGrid]) -> int:
213
+ //| def index(self, layer: Union[vectorio.Circle, vectorio.Rectangle, vectorio.Polygon , Group, TileGrid]) -> int:
214
214
//| """Returns the index of the first copy of layer. Raises ValueError if not found."""
215
215
//| ...
216
216
//|
@@ -224,7 +224,7 @@ STATIC mp_obj_t displayio_group_obj_index(mp_obj_t self_in, mp_obj_t layer) {
224
224
}
225
225
MP_DEFINE_CONST_FUN_OBJ_2 (displayio_group_index_obj , displayio_group_obj_index );
226
226
227
- //| def pop(self, i: int = -1) -> Union[vectorio.VectorShape , Group, TileGrid]:
227
+ //| def pop(self, i: int = -1) -> Union[vectorio.Circle, vectorio.Rectangle, vectorio.Polygon , Group, TileGrid]:
228
228
//| """Remove the ith item and return it."""
229
229
//| ...
230
230
//|
@@ -247,7 +247,7 @@ STATIC mp_obj_t displayio_group_obj_pop(size_t n_args, const mp_obj_t *pos_args,
247
247
MP_DEFINE_CONST_FUN_OBJ_KW (displayio_group_pop_obj , 1 , displayio_group_obj_pop );
248
248
249
249
250
- //| def remove(self, layer: Union[vectorio.VectorShape , Group, TileGrid]) -> None:
250
+ //| def remove(self, layer: Union[vectorio.Circle, vectorio.Rectangle, vectorio.Polygon , Group, TileGrid]) -> None:
251
251
//| """Remove the first copy of layer. Raises ValueError if it is not present."""
252
252
//| ...
253
253
//|
@@ -280,15 +280,15 @@ STATIC mp_obj_t group_unary_op(mp_unary_op_t op, mp_obj_t self_in) {
280
280
}
281
281
}
282
282
283
- //| def __getitem__(self, index: int) -> Union[vectorio.VectorShape , Group, TileGrid]:
283
+ //| def __getitem__(self, index: int) -> Union[vectorio.Circle, vectorio.Rectangle, vectorio.Polygon , Group, TileGrid]:
284
284
//| """Returns the value at the given index.
285
285
//|
286
286
//| This allows you to::
287
287
//|
288
288
//| print(group[0])"""
289
289
//| ...
290
290
//|
291
- //| def __setitem__(self, index: int, value: Union[vectorio.VectorShape , Group, TileGrid]) -> None:
291
+ //| def __setitem__(self, index: int, value: Union[vectorio.Circle, vectorio.Rectangle, vectorio.Polygon , Group, TileGrid]) -> None:
292
292
//| """Sets the value at the given index.
293
293
//|
294
294
//| This allows you to::
0 commit comments