Skip to content

Commit c75a768

Browse files
authored
Merge pull request #7949 from FoamyGuy/group_contains_stub
adding __contains__ stub to displayio.Group
2 parents 93b0e5b + c9bb53b commit c75a768

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

shared-bindings/displayio/Group.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,15 @@ STATIC mp_obj_t displayio_group_obj_remove(mp_obj_t self_in, mp_obj_t layer) {
249249
MP_DEFINE_CONST_FUN_OBJ_2(displayio_group_remove_obj, displayio_group_obj_remove);
250250

251251
//| def __bool__(self) -> bool: ...
252+
//| def __contains__(
253+
//| self,
254+
//| item: Union[vectorio.Circle, vectorio.Rectangle, vectorio.Polygon, Group, TileGrid],
255+
//| ) -> bool: ...
256+
//| def __iter__(
257+
//| self,
258+
//| ) -> Iterator[
259+
//| Union[vectorio.Circle, vectorio.Rectangle, vectorio.Polygon, Group, TileGrid]
260+
//| ]: ...
252261
//| def __len__(self) -> int:
253262
//| """Returns the number of layers in a Group"""
254263
//| ...

0 commit comments

Comments
 (0)