Merge pull request #7949 from FoamyGuy/group_contains_stub

adding __contains__ stub to displayio.Group
This commit is contained in:
Scott Shawcroft 2023-05-11 10:00:39 -07:00 committed by GitHub
commit c75a768b59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -249,6 +249,15 @@ 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 __iter__(
//| self,
//| ) -> Iterator[
//| Union[vectorio.Circle, vectorio.Rectangle, vectorio.Polygon, Group, TileGrid]
//| ]: ...
//| def __len__(self) -> int:
//| """Returns the number of layers in a Group"""
//| ...