File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 48
48
49
49
// These are standard stream methods. Code is in py/stream.c.
50
50
//
51
- //| def read(self, nbytes: Any = None) -> Any :
51
+ //| def read(self, nbytes: int = None) -> Optional[bytes] :
52
52
//| """Read characters. If ``nbytes`` is specified then read at most that many
53
53
//| bytes. Otherwise, read everything that arrives until the connection
54
54
//| times out. Providing the number of bytes expected is highly recommended
58
58
//| :rtype: bytes or None"""
59
59
//| ...
60
60
//|
61
- //| def readinto(self, buf: Any , nbytes: Any = None) -> Any :
61
+ //| def readinto(self, buf: WriteableBuffer , nbytes: int = None) -> Optional[bytes] :
62
62
//| """Read bytes into the ``buf``. If ``nbytes`` is specified then read at most
63
63
//| that many bytes. Otherwise, read at most ``len(buf)`` bytes.
64
64
//|
Original file line number Diff line number Diff line change 47
47
48
48
// These are standard stream methods. Code is in py/stream.c.
49
49
//
50
- //| def write(self, buf: Any ) -> Any :
50
+ //| def write(self, buf: ReadableBuffer ) -> Optional[int] :
51
51
//| """Write the buffer of bytes to the bus.
52
52
//|
53
53
//| :return: the number of bytes written
You can’t perform that action at this time.
0 commit comments