Skip to content

Commit 7c68547

Browse files
committed
adding __contains__ stub to displayio.Group
1 parent 9e4dea7 commit 7c68547

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

shared-bindings/displayio/Group.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,10 @@ 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: ...
252256
//| def __len__(self) -> int:
253257
//| """Returns the number of layers in a Group"""
254258
//| ...

0 commit comments

Comments
 (0)