Skip to content

Commit a0b9e47

Browse files
committed
Remove type annotations
1 parent cedfa42 commit a0b9e47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class Reader(metaclass=abc.ABCMeta):
115115
__slots__ = ()
116116

117117
@abc.abstractmethod
118-
def read(self, size: int = ..., /) -> T:
118+
def read(self, size=..., /):
119119
"""Read data from the input stream and return it.
120120
121121
If "size" is specified, at most "size" items (bytes/characters) will be
@@ -141,7 +141,7 @@ class Writer(metaclass=abc.ABCMeta):
141141
__slots__ = ()
142142

143143
@abc.abstractmethod
144-
def write(self, data: T, /) -> int:
144+
def write(self, data, /):
145145
"""Write data to the output stream and return number of items written."""
146146

147147
@classmethod

0 commit comments

Comments
 (0)