8000 Add Optional[int] to docs string · dastels/circuitpython@7b6d805 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7b6d805

Browse files
committed
Add Optional[int] to docs string
1 parent 649a955 commit 7b6d805

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

shared-bindings/displayio/Display.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ STATIC mp_obj_t displayio_display_obj_show(mp_obj_t self_in, mp_obj_t group_in)
215215
}
216216
MP_DEFINE_CONST_FUN_OBJ_2(displayio_display_show_obj, displayio_display_obj_show);
217217

218-
//| def refresh(self, *, target_frames_per_second: int = None, minimum_frames_per_second: int = 1) -> bool:
218+
//| def refresh(self, *, target_frames_per_second: Optional[int] = None, minimum_frames_per_second: int = 1) -> bool:
219219
//| """When auto refresh is off, waits for the target frame rate and then refreshes the display,
220220
//| returning True. If the call has taken too long since the last refresh call for the given
221221
//| target frame rate, then the refresh returns False immediately without updating the screen to
@@ -230,7 +230,8 @@ MP_DEFINE_CONST_FUN_OBJ_2(displayio_display_show_obj, displayio_display_obj_show
230230
//| When auto refresh is off, `refresh()` or `refresh(target_frames_per_second=None)` will update
231231
//| the display immediately.
232232
//|
233-
//| :param int target_frames_per_second: How many times a second `refresh` should be called and the screen updated. Set to `None` for immediate refresh.
233+
//| :param int target_frames_per_second: How many times a second `refresh` should be called
234+
//| and the screen updated. Set to `None` for immediate refresh.
234235
//| :param int minimum_frames_per_second: The minimum number of times the screen should be updated per second."""
235236
//| ...
236237
//|

0 commit comments

Comments
 (0)
0