@@ -183,7 +183,7 @@ const mp_obj_property_t displayio_group_y_obj = {
183183 MP_ROM_NONE },
184184};
185185
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:
187187//| """Append a layer to the group. It will be drawn above other layers."""
188188//| ...
189189//|
@@ -194,7 +194,7 @@ STATIC mp_obj_t displayio_group_obj_append(mp_obj_t self_in, mp_obj_t layer) {
194194}
195195MP_DEFINE_CONST_FUN_OBJ_2 (displayio_group_append_obj , displayio_group_obj_append );
196196
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:
198198//| """Insert a layer into the group."""
199199//| ...
200200//|
@@ -210,7 +210,7 @@ STATIC mp_obj_t displayio_group_obj_insert(mp_obj_t self_in, mp_obj_t index_obj,
210210MP_DEFINE_CONST_FUN_OBJ_3 (displayio_group_insert_obj , displayio_group_obj_insert );
211211
212212
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:
214214//| """Returns the index of the first copy of layer. Raises ValueError if not found."""
215215//| ...
216216//|
@@ -224,7 +224,7 @@ STATIC mp_obj_t displayio_group_obj_index(mp_obj_t self_in, mp_obj_t layer) {
224224}
225225MP_DEFINE_CONST_FUN_OBJ_2 (displayio_group_index_obj , displayio_group_obj_index );
226226
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]:
228228//| """Remove the ith item and return it."""
229229//| ...
230230//|
@@ -247,7 +247,7 @@ STATIC mp_obj_t displayio_group_obj_pop(size_t n_args, const mp_obj_t *pos_args,
247247MP_DEFINE_CONST_FUN_OBJ_KW (displayio_group_pop_obj , 1 , displayio_group_obj_pop );
248248
249249
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:
251251//| """Remove the first copy of layer. Raises ValueError if it is not present."""
252252//| ...
253253//|
@@ -280,15 +280,15 @@ 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) -> Union[vectorio.VectorShape , Group, TileGrid]:
283+ //| def __getitem__(self, index: int) -> Union[vectorio.Circle, vectorio.Rectangle, vectorio.Polygon , 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: Union[vectorio.VectorShape , Group, TileGrid]) -> None:
291+ //| def __setitem__(self, index: int, value: Union[vectorio.Circle, vectorio.Rectangle, vectorio.Polygon , Group, TileGrid]) -> None:
292292//| """Sets the value at the given index.
293293//|
294294//| This allows you to::
0 commit comments