@@ -198,10 +198,6 @@ def mode(self) -> str:
198
198
# for _get_filepath_or_buffer
199
199
...
200
200
201
- def fileno (self ) -> int :
202
- # for _MMapWrapper
203
- ...
204
-
205
201
def seek (self , __offset : int , __whence : int = ...) -> int :
206
202
# with one argument: gzip.GzipFile, bz2.BZ2File
207
203
# with two arguments: zip.ZipFile, read_sas
@@ -217,7 +213,7 @@ def tell(self) -> int:
217
213
218
214
219
215
class ReadBuffer (BaseBuffer , Protocol [AnyStr_cov ]):
220
- def read (self , __n : int | None = ...) -> AnyStr_cov :
216
+ def read (self , __n : int = ...) -> AnyStr_cov :
221
217
# for BytesIOWrapper, gzip.GzipFile, bz2.BZ2File
222
218
...
223
219
@@ -233,7 +229,7 @@ def flush(self) -> Any:
233
229
234
230
235
231
class ReadPickleBuffer (ReadBuffer [bytes ], Protocol ):
236
- def readline (self ) -> AnyStr_cov :
232
+ def readline (self ) -> bytes :
237
233
...
238
234
239
235
@@ -247,6 +243,10 @@ def __iter__(self) -> Iterator[AnyStr_cov]:
247
243
# for engine=python
248
244
...
249
245
246
+ def fileno (self ) -> int :
247
+ # for _MMapWrapper
248
+ ...
249
+
250
250
def readline (self ) -> AnyStr_cov :
251
251
# for engine=python
252
252
...
0 commit comments