From 7c685477babd6f87c5751b49bca3fc9303daef0c Mon Sep 17 00:00:00 2001 From: foamyguy Date: Mon, 8 May 2023 16:41:57 -0500 Subject: [PATCH] adding __contains__ stub to displayio.Group --- shared-bindings/displayio/Group.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shared-bindings/displayio/Group.c b/shared-bindings/displayio/Group.c index 24064a74c1..48bbd50801 100644 --- a/shared-bindings/displayio/Group.c +++ b/shared-bindings/displayio/Group.c @@ -249,6 +249,10 @@ STATIC mp_obj_t displayio_group_obj_remove(mp_obj_t self_in, mp_obj_t layer) { MP_DEFINE_CONST_FUN_OBJ_2(displayio_group_remove_obj, displayio_group_obj_remove); //| def __bool__(self) -> bool: ... +//| def __contains__( +//| self, +//| item: Union[vectorio.Circle, vectorio.Rectangle, vectorio.Polygon, Group, TileGrid], +//| ) -> bool: ... //| def __len__(self) -> int: //| """Returns the number of layers in a Group""" //| ...