mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-16 02:51:28 +08:00
Add some defaults and __slots__ for 3.14 (#14622)
This commit is contained in:
1 parent
94b1880444
commit
b6e21d05ae
7 files changed
+26
-4
No files matched your search
@@ -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