mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-10 02:19:18 +08:00
Add some defaults and __slots__ for 3.14 (#14622)
This commit is contained in:
@@ -67,7 +67,9 @@ class TextIOBase(_TextIOBase, IOBase): ...
|
||||
|
||||
if sys.version_info >= (3, 14):
|
||||
class Reader(Protocol[_T_co]):
|
||||
__slots__ = ()
|
||||
def read(self, size: int = ..., /) -> _T_co: ...
|
||||
|
||||
class Writer(Protocol[_T_contra]):
|
||||
__slots__ = ()
|
||||
def write(self, data: _T_contra, /) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user