@@ -190,7 +190,7 @@ const mp_obj_property_t displayio_group_y_obj = {
190
190
(mp_obj_t )& mp_const_none_obj },
191
191
};
192
192
193
- //| def append(self, layer: layer ) -> None:
193
+ //| def append(self, layer: Union[vectorio.Shape, Group, TileGrid] ) -> None:
194
194
//| """Append a layer to the group. It will be drawn above other layers."""
195
195
//| ...
196
196
//|
@@ -201,7 +201,7 @@ STATIC mp_obj_t displayio_group_obj_append(mp_obj_t self_in, mp_obj_t layer) {
201
201
}
202
202
MP_DEFINE_CONST_FUN_OBJ_2 (displayio_group_append_obj , displayio_group_obj_append );
203
203
204
- //| def insert(self, index: int, layer: layer ) -> None:
204
+ //| def insert(self, index: int, layer: Union[vectorio.Shape, Group, TileGrid] ) -> None:
205
205
//| """Insert a layer into the group."""
206
206
//| ...
207
207
//|
@@ -214,7 +214,7 @@ STATIC mp_obj_t displayio_group_obj_insert(mp_obj_t self_in, mp_obj_t index_obj,
214
214
MP_DEFINE_CONST_FUN_OBJ_3 (displayio_group_insert_obj , displayio_group_obj_insert );
215
215
216
216
217
- //| def index(self, layer: layer ) -> int:
217
+ //| def index(self, layer: Union[vectorio.Shape, Group, TileGrid] ) -> int:
218
218
//| """Returns the index of the first copy of layer. Raises ValueError if not found."""
219
219
//| ...
220
220
//|
@@ -228,7 +228,7 @@ STATIC mp_obj_t displayio_group_obj_index(mp_obj_t self_in, mp_obj_t layer) {
228
228
}
229
229
MP_DEFINE_CONST_FUN_OBJ_2 (displayio_group_index_obj , displayio_group_obj_index );
230
230
231
- //| def pop(self, i: int = -1) -> group :
231
+ //| def pop(self, i: int = -1) -> Union[vectorio.Shape, Group, TileGrid] :
232
232
//| """Remove the ith item and return it."""
233
233
//| ...
234
234
//|
@@ -251,7 +251,7 @@ STATIC mp_obj_t displayio_group_obj_pop(size_t n_args, const mp_obj_t *pos_args,
251
251
MP_DEFINE_CONST_FUN_OBJ_KW (displayio_group_pop_obj , 1 , displayio_group_obj_pop );
252
252
253
253
254
- //| def remove(self, layer: layer ) -> None:
254
+ //| def remove(self, layer: Union[vectorio.Shape, Group, TileGrid] ) -> None:
255
255
//| """Remove the first copy of layer. Raises ValueError if it is not present."""
256
256
//| ...
257
257
//|
@@ -280,23 +280,23 @@ 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) -> group :
283
+ //| def __getitem__(self, index: int) -> Union[vectorio.Shape, 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: group ) -> None:
291
+ //| def __setitem__(self, index: int, value: Union[vectorio.Shape, Group, TileGrid] ) -> None:
292
292
//| """Sets the value at the given index.
293
293
//|
294
294
//| This allows you to::
295
295
//|
296
296
//| group[0] = sprite"""
297
297
//| ...
298
298
//|
299
- //| def __delitem__(self, index: int) -> group :
299
+ //| def __delitem__(self, index: int) -> None :
300
300
//| """Deletes the value at the given index.
301
301
//|
302
302
//| This allows you to::
0 commit comments