Skip to content

Commit bfcaa4b

Browse files
committed
Made requested changes in displayio
1 parent bce77ad commit bfcaa4b

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

shared-bindings/displayio/Display.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ const mp_obj_property_t displayio_display_rotation_obj = {
395395
(mp_obj_t)&mp_const_none_obj},
396396
};
397397

398-
//| bus: displayio = ...
398+
//| bus: Union[ParallelBus, FourWire, I2CDisplay] = ...
399399
//| """The bus being used by the display"""
400400
//|
401401
//|

shared-bindings/displayio/Group.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ const mp_obj_property_t displayio_group_y_obj = {
190190
(mp_obj_t)&mp_const_none_obj},
191191
};
192192

193-
//| def append(self, layer: layer) -> None:
193+
//| def append(self, layer: Union[vectorio.Shape, Group, TileGrid]) -> None:
194194
//| """Append a layer to the group. It will be drawn above other layers."""
195195
//| ...
196196
//|
@@ -201,7 +201,7 @@ STATIC mp_obj_t displayio_group_obj_append(mp_obj_t self_in, mp_obj_t layer) {
201201
}
202202
MP_DEFINE_CONST_FUN_OBJ_2(displayio_group_append_obj, displayio_group_obj_append);
203203

204-
//| def insert(self, index: int, layer: layer) -> None:
204+
//| def insert(self, index: int, layer: Union[vectorio.Shape, Group, TileGrid]) -> None:
205205
//| """Insert a layer into the group."""
206206
//| ...
207207
//|
@@ -214,7 +214,7 @@ STATIC mp_obj_t displayio_group_obj_insert(mp_obj_t self_in, mp_obj_t index_obj,
214214
MP_DEFINE_CONST_FUN_OBJ_3(displayio_group_insert_obj, displayio_group_obj_insert);
215215

216216

217-
//| def index(self, layer: layer) -> int:
217+
//| def index(self, layer: Union[vectorio.Shape, Group, TileGrid]) -> int:
218218
//| """Returns the index of the first copy of layer. Raises ValueError if not found."""
219219
//| ...
220220
//|
@@ -228,7 +228,7 @@ STATIC mp_obj_t displayio_group_obj_index(mp_obj_t self_in, mp_obj_t layer) {
228228
}
229229
MP_DEFINE_CONST_FUN_OBJ_2(displayio_group_index_obj, displayio_group_obj_index);
230230

231-
//| def pop(self, i: int = -1) -> group:
231+
//| def pop(self, i: int = -1) -> Union[vectorio.Shape, Group, TileGrid]:
232232
//| """Remove the ith item and return it."""
233233
//| ...
234234
//|
@@ -251,7 +251,7 @@ STATIC mp_obj_t displayio_group_obj_pop(size_t n_args, const mp_obj_t *pos_args,
251251
MP_DEFINE_CONST_FUN_OBJ_KW(displayio_group_pop_obj, 1, displayio_group_obj_pop);
252252

253253

254-
//| def remove(self, layer: layer) -> None:
254+
//| def remove(self, layer: Union[vectorio.Shape, Group, TileGrid]) -> None:
255255
//| """Remove the first copy of layer. Raises ValueError if it is not present."""
256256
//| ...
257257
//|
@@ -280,23 +280,23 @@ STATIC mp_obj_t group_unary_op(mp_unary_op_t op, mp_obj_t self_in) {
280280
}
281281
}
282282

283-
//| def __getitem__(self, index: int) -> group:
283+
//| def __getitem__(self, index: int) -> Union[vectorio.Shape, Group, TileGrid]:
284284
//| """Returns the value at the given index.
285285
//|
286286
//| This allows you to::
287287
//|
288288
//| print(group[0])"""
289289
//| ...
290290
//|
291-
//| def __setitem__(self, index: int, value: group) -> None:
291+
//| def __setitem__(self, index: int, value: Union[vectorio.Shape, Group, TileGrid]) -> None:
292292
//| """Sets the value at the given index.
293293
//|
294294
//| This allows you to::
295295
//|
296296
//| group[0] = sprite"""
297297
//| ...
298298
//|
299-
//| def __delitem__(self, index: int) -> group:
299+
//| def __delitem__(self, index: int) -> None:
300300
//| """Deletes the value at the given index.
301301
//|
302302
//| This allows you to::

shared-bindings/displayio/TileGrid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ const mp_obj_property_t displayio_tilegrid_transpose_xy_obj = {
289289
(mp_obj_t)&mp_const_none_obj},
290290
};
291291

292-
//| pixel_shader: pixel_shader = ...
292+
//| pixel_shader: Union[ColorConverter, Palette] = ...
293293
//| """The pixel shader of the tilegrid."""
294294
//|
295295
STATIC mp_obj_t displayio_tilegrid_obj_get_pixel_shader(mp_obj_t self_in) {

0 commit comments

Comments
 (0)