@@ -190,7 +190,7 @@ const mp_obj_property_t displayio_group_y_obj = {
190190 (mp_obj_t )& mp_const_none_obj },
191191};
192192
193- //| def append(self, layer: layer ) -> None:
193+ //| def append(self, layer: Union[vectorio.Shape, Group, TileGrid] ) -> None:
194194//| """Append a layer to the group. It will be drawn above other layers."""
195195//| ...
196196//|
@@ -201,7 +201,7 @@ STATIC mp_obj_t displayio_group_obj_append(mp_obj_t self_in, mp_obj_t layer) {
201201}
202202MP_DEFINE_CONST_FUN_OBJ_2 (displayio_group_append_obj , displayio_group_obj_append );
203203
204- //| def insert(self, index: int, layer: layer ) -> None:
204+ //| def insert(self, index: int, layer: Union[vectorio.Shape, Group, TileGrid] ) -> None:
205205//| """Insert a layer into the group."""
206206//| ...
207207//|
@@ -214,7 +214,7 @@ STATIC mp_obj_t displayio_group_obj_insert(mp_obj_t self_in, mp_obj_t index_obj,
214214MP_DEFINE_CONST_FUN_OBJ_3 (displayio_group_insert_obj , displayio_group_obj_insert );
215215
216216
217- //| def index(self, layer: layer ) -> int:
217+ //| def index(self, layer: Union[vectorio.Shape, Group, TileGrid] ) -> int:
218218//| """Returns the index of the first copy of layer. Raises ValueError if not found."""
219219//| ...
220220//|
@@ -228,7 +228,7 @@ STATIC mp_obj_t displayio_group_obj_index(mp_obj_t self_in, mp_obj_t layer) {
228228}
229229MP_DEFINE_CONST_FUN_OBJ_2 (displayio_group_index_obj , displayio_group_obj_index );
230230
231- //| def pop(self, i: int = -1) -> group :
231+ //| def pop(self, i: int = -1) -> Union[vectorio.Shape, Group, TileGrid] :
232232//| """Remove the ith item and return it."""
233233//| ...
234234//|
@@ -251,7 +251,7 @@ STATIC mp_obj_t displayio_group_obj_pop(size_t n_args, const mp_obj_t *pos_args,
251251MP_DEFINE_CONST_FUN_OBJ_KW (displayio_group_pop_obj , 1 , displayio_group_obj_pop );
252252
253253
254- //| def remove(self, layer: layer ) -> None:
254+ //| def remove(self, layer: Union[vectorio.Shape, Group, TileGrid] ) -> None:
255255//| """Remove the first copy of layer. Raises ValueError if it is not present."""
256256//| ...
257257//|
@@ -280,23 +280,23 @@ STATIC mp_obj_t group_unary_op(mp_unary_op_t op, mp_obj_t self_in) {
280280 }
281281}
282282
283- //| def __getitem__(self, index: int) -> group :
283+ //| def __getitem__(self, index: int) -> Union[vectorio.Shape, Group, TileGrid] :
284284//| """Returns the value at the given index.
285285//|
286286//| This allows you to::
287287//|
288288//| print(group[0])"""
289289//| ...
290290//|
291- //| def __setitem__(self, index: int, value: group ) -> None:
291+ //| def __setitem__(self, index: int, value: Union[vectorio.Shape, Group, TileGrid] ) -> None:
292292//| """Sets the value at the given index.
293293//|
294294//| This allows you to::
295295//|
296296//| group[0] = sprite"""
297297//| ...
298298//|
299- //| def __delitem__(self, index: int) -> group :
299+ //| def __delitem__(self, index: int) -> None :
300300//| """Deletes the value at the given index.
301301//|
302302//| This allows you to::
0 commit comments