Skip to content

Commit b188368

Browse files
committed
[pyserial] Allow None for Timeout duration
1 parent b2764c4 commit b188368

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎stubs/pyserial/serial/serialutil.pyi‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ class Timeout:
3434
TIME: Callable[[], float]
3535
is_infinite: bool
3636
is_non_blocking: bool
37-
duration: float
38-
target_time: float
39-
def __init__(self, duration: float) -> None: ...
37+
duration: float | None
38+
target_time: float | None
39+
def __init__(self, duration: float | None) -> None: ...
4040
def expired(self) -> bool: ...
41-
def time_left(self) -> float: ...
41+
def time_left(self) -> float | None: ...
4242
def restart(self, duration: float) -> None: ...
4343

4444
class SerialBase(io.RawIOBase):

0 commit comments

Comments
 (0)