Skip to content

Commit 08375c7

Browse files
authored
Merge pull request #2780 from AndrewR-L/patch-1
busio/UART: Correct and clarify readline() return.
2 parents 51c888d + 70fdde4 commit 08375c7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

shared-bindings/busio/UART.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,13 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(busio_uart___exit___obj, 4, 4, busio_
199199
//| *New in CircuitPython 4.0:* No length parameter is permitted."""
200200
//| ...
201201
//|
202-
203202
//| def readline(self, ) -> Any:
204-
//| """Read a line, ending in a newline character.
203+
//| """Read a line, ending in a newline character, or
204+
//| return None if a timeout occurs sooner, or
205+
//| return everything readable if no newline is found and timeout=0
205206
//|
206207
//| :return: the line read
207-
//| :rtype: int or None"""
208+
//| :rtype: bytes or None"""
208209
//| ...
209210
//|
210211

shared-bindings/time/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ mp_obj_t struct_time_make_new(const mp_obj_type_t *type, size_t n_args, const mp
102102
//| * ``tm_month``: the month, range [1, 12]
103103
//| * ``tm_mday``: the day of the month, range [1, 31]
104104
//| * ``tm_hour``: the hour, range [0, 23]
105-
//| * ``tm_minute``: the minute, range [0, 59]
105+
//| * ``tm_min``: the minute, range [0, 59]
106106
//| * ``tm_sec``: the second, range [0, 61]
107107
//| * ``tm_wday``: the day of the week, range [0, 6], Monday is 0
108108
//| * ``tm_yday``: the day of the year, range [1, 366], -1 indicates not known

0 commit comments

Comments
 (0)