adding __contains__ stub to displayio.Group

This commit is contained in:
foamyguy 2023-05-08 16:41:57 -05:00
parent 9e4dea7b15
commit 7c685477ba

View File

@ -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"""
//| ...