Skip to content

Commit 285129a

Browse files
author
hauntsaninja
committed
black and isort
1 parent 7c43083 commit 285129a

File tree

141 files changed

+240
-1010
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+240
-1010
lines changed

stdlib/@python2/UserDict.pyi

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,4 @@
1-
from typing import (
2-
Any,
3-
Container,
4-
Dict,
5-
Generic,
6-
Iterable,
7-
Iterator,
8-
List,
9-
Mapping,
10-
11-
Sized,
12-
Tuple,
13-
TypeVar,
14-
15-
overload,
16-
)
1+
from typing import Any, Container, Dict, Generic, Iterable, Iterator, List, Mapping, Sized, Tuple, TypeVar, overload
172

183
_KT = TypeVar("_KT")
194
_VT = TypeVar("_VT")

stdlib/@python2/__builtin__.pyi

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,7 @@ class unicode(basestring, Sequence[unicode]):
295295
def count(self, x: unicode) -> int: ...
296296
def decode(self, encoding: unicode = ..., errors: unicode = ...) -> unicode: ...
297297
def encode(self, encoding: unicode = ..., errors: unicode = ...) -> str: ...
298-
def endswith(
299-
self, __suffix: unicode | Tuple[unicode, ...], __start: int | None = ..., __end: int | None = ...
300-
) -> bool: ...
298+
def endswith(self, __suffix: unicode | Tuple[unicode, ...], __start: int | None = ..., __end: int | None = ...) -> bool: ...
301299
def expandtabs(self, tabsize: int = ...) -> unicode: ...
302300
def find(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...
303301
def format(self, *args: object, **kwargs: object) -> unicode: ...
@@ -327,9 +325,7 @@ class unicode(basestring, Sequence[unicode]):
327325
def rstrip(self, chars: unicode = ...) -> unicode: ...
328326
def split(self, sep: unicode | None = ..., maxsplit: int = ...) -> List[unicode]: ...
329327
def splitlines(self, keepends: bool = ...) -> List[unicode]: ...
330-
def startswith(
331-
self, __prefix: unicode | Tuple[unicode, ...], __start: int | None = ..., __end: int | None = ...
332-
) -> bool: ...
328+
def startswith(self, __prefix: unicode | Tuple[unicode, ...], __start: int | None = ..., __end: int | None = ...) -> bool: ...
333329
def strip(self, chars: unicode = ...) -> unicode: ...
334330
def swapcase(self) -> unicode: ...
335331
def title(self) -> unicode: ...
@@ -372,9 +368,7 @@ class str(Sequence[str], basestring):
372368
def count(self, x: Text, __start: int | None = ..., __end: int | None = ...) -> int: ...
373369
def decode(self, encoding: Text = ..., errors: Text = ...) -> unicode: ...
374370
def encode(self, encoding: Text = ..., errors: Text = ...) -> bytes: ...
375-
def endswith(
376-
self, __suffix: Text | Tuple[Text, ...], __start: int | None = ..., __end: int | None = ...
377-
) -> bool: ...
371+
def endswith(self, __suffix: Text | Tuple[Text, ...], __start: int | None = ..., __end: int | None = ...) -> bool: ...
378372
def expandtabs(self, tabsize: int = ...) -> str: ...
379373
def find(self, sub: Text, __start: int | None = ..., __end: int | None = ...) -> int: ...
380374
def format(self, *args: object, **kwargs: object) -> str: ...
@@ -423,9 +417,7 @@ class str(Sequence[str], basestring):
423417
@overload
424418
def split(self, sep: unicode, maxsplit: int = ...) -> List[unicode]: ...
425419
def splitlines(self, keepends: bool = ...) -> List[str]: ...
426-
def startswith(
427-
self, __prefix: Text | Tuple[Text, ...], __start: int | None = ..., __end: int | None = ...
428-
) -> bool: ...
420+
def startswith(self, __prefix: Text | Tuple[Text, ...], __start: int | None = ..., __end: int | None = ...) -> bool: ...
429421
@overload
430422
def strip(self, __chars: str = ...) -> str: ...
431423
@overload
@@ -475,9 +467,7 @@ class bytearray(MutableSequence[int], ByteString):
475467
def center(self, __width: int, __fillchar: bytes = ...) -> bytearray: ...
476468
def count(self, __sub: str) -> int: ...
477469
def decode(self, encoding: Text = ..., errors: Text = ...) -> str: ...
478-
def endswith(
479-
self, __suffix: bytes | Tuple[bytes, ...], __start: int | None = ..., __end: int | None = ...
480-
) -> bool: ...
470+
def endswith(self, __suffix: bytes | Tuple[bytes, ...], __start: int | None = ..., __end: int | None = ...) -> bool: ...
481471
def expandtabs(self, tabsize: int = ...) -> bytearray: ...
482472
def extend(self, iterable: str | Iterable[int]) -> None: ...
483473
def find(self, __sub: str, __start: int = ..., __end: int = ...) -> int: ...
@@ -504,9 +494,7 @@ class bytearray(MutableSequence[int], ByteString):
504494
def rstrip(self, __bytes: bytes | None = ...) -> bytearray: ...
505495
def split(self, sep: bytes | None = ..., maxsplit: int = ...) -> List[bytearray]: ...
506496
def splitlines(self, keepends: bool = ...) -> List[bytearray]: ...
507-
def startswith(
508-
self, __prefix: bytes | Tuple[bytes, ...], __start: int | None = ..., __end: int | None = ...
509-
) -> bool: ...
497+
def startswith(self, __prefix: bytes | Tuple[bytes, ...], __start: int | None = ..., __end: int | None = ...) -> bool: ...
510498
def strip(self, __bytes: bytes | None = ...) -> bytearray: ...
511499
def swapcase(self) -> bytearray: ...
512500
def title(self) -> bytearray: ...
@@ -972,9 +960,7 @@ def open(name: unicode | int, mode: unicode = ..., buffering: int = ...) -> Bina
972960
def ord(__c: Text | bytes) -> int: ...
973961

974962
# This is only available after from __future__ import print_function.
975-
def print(
976-
*values: object, sep: Text | None = ..., end: Text | None = ..., file: SupportsWrite[Any] | None = ...
977-
) -> None: ...
963+
def print(*values: object, sep: Text | None = ..., end: Text | None = ..., file: SupportsWrite[Any] | None = ...) -> None: ...
978964

979965
_E = TypeVar("_E", contravariant=True)
980966
_M = TypeVar("_M", contravariant=True)
@@ -1181,9 +1167,7 @@ class file(BinaryIO):
11811167
def next(self) -> str: ...
11821168
def read(self, n: int = ...) -> str: ...
11831169
def __enter__(self) -> BinaryIO: ...
1184-
def __exit__(
1185-
self, t: type | None = ..., exc: BaseException | None = ..., tb: Any | None = ...
1186-
) -> bool | None: ...
1170+
def __exit__(self, t: type | None = ..., exc: BaseException | None = ..., tb: Any | None = ...) -> bool | None: ...
11871171
def flush(self) -> None: ...
11881172
def fileno(self) -> int: ...
11891173
def isatty(self) -> bool: ...

stdlib/@python2/_io.pyi

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ class _IOBase(BinaryIO):
3131
def truncate(self, size: int | None = ...) -> int: ...
3232
def writable(self) -> bool: ...
3333
def __enter__(self: _T) -> _T: ...
34-
def __exit__(
35-
self, t: Type[BaseException] | None, value: BaseException | None, traceback: Any | None
36-
) -> bool | None: ...
34+
def __exit__(self, t: Type[BaseException] | None, value: BaseException | None, traceback: Any | None) -> bool | None: ...
3735
def __iter__(self: _T) -> _T: ...
3836
# The parameter type of writelines[s]() is determined by that of write():
3937
def writelines(self, lines: Iterable[bytes]) -> None: ...
@@ -141,9 +139,7 @@ class _TextIOBase(TextIO):
141139
def write(self, pbuf: unicode) -> int: ...
142140
def writelines(self, lines: Iterable[unicode]) -> None: ...
143141
def __enter__(self: _T) -> _T: ...
144-
def __exit__(
145-
self, t: Type[BaseException] | None, value: BaseException | None, traceback: Any | None
146-
) -> bool | None: ...
142+
def __exit__(self, t: Type[BaseException] | None, value: BaseException | None, traceback: Any | None) -> bool | None: ...
147143
def __iter__(self: _T) -> _T: ...
148144

149145
class StringIO(_TextIOBase):

stdlib/@python2/_sha256.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
class sha224(object):
42
name: str
53
block_size: int

stdlib/@python2/_sha512.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
class sha384(object):
42
name: str
53
block_size: int

stdlib/@python2/argparse.pyi

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ class _ActionsContainer:
5858
_defaults: Dict[str, Any]
5959
_negative_number_matcher: Pattern[str]
6060
_has_negative_number_optionals: List[bool]
61-
def __init__(
62-
self, description: Text | None, prefix_chars: Text, argument_default: Any, conflict_handler: Text
63-
) -> None: ...
61+
def __init__(self, description: Text | None, prefix_chars: Text, argument_default: Any, conflict_handler: Text) -> None: ...
6462
def register(self, registry_name: Text, value: Any, object: Any) -> None: ...
6563
def _registry_get(self, registry_name: Text, value: Any, default: Any = ...) -> Any: ...
6664
def set_defaults(self, **kwargs: Any) -> None: ...
@@ -250,11 +248,7 @@ class Action(_AttributeHolder):
250248
metavar: Text | Tuple[Text, ...] | None = ...,
251249
) -> None: ...
252250
def __call__(
253-
self,
254-
parser: ArgumentParser,
255-
namespace: Namespace,
256-
values: Text | Sequence[Any] | None,
257-
option_string: Text | None = ...,
251+
self, parser: ArgumentParser, namespace: Namespace, values: Text | Sequence[Any] | None, option_string: Text | None = ...
258252
) -> None: ...
259253

260254
class Namespace(_AttributeHolder):
@@ -344,12 +338,7 @@ class _HelpAction(Action):
344338
class _VersionAction(Action):
345339
version: _Text | None
346340
def __init__(
347-
self,
348-
option_strings: Sequence[Text],
349-
version: Text | None = ...,
350-
dest: Text = ...,
351-
default: Text = ...,
352-
help: Text = ...,
341+
self, option_strings: Sequence[Text], version: Text | None = ..., dest: Text = ..., default: Text = ..., help: Text = ...
353342
) -> None: ...
354343

355344
# undocumented

stdlib/@python2/bdb.pyi

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,9 @@ class Bdb:
5858
def get_all_breaks(self) -> List[Breakpoint]: ...
5959
def get_stack(self, f: FrameType | None, t: TracebackType | None) -> Tuple[List[Tuple[FrameType, int]], int]: ...
6060
def format_stack_entry(self, frame_lineno: int, lprefix: str = ...) -> str: ...
61-
def run(
62-
self, cmd: str | CodeType, globals: Dict[str, Any] | None = ..., locals: Mapping[str, Any] | None = ...
63-
) -> None: ...
61+
def run(self, cmd: str | CodeType, globals: Dict[str, Any] | None = ..., locals: Mapping[str, Any] | None = ...) -> None: ...
6462
def runeval(self, expr: str, globals: Dict[str, Any] | None = ..., locals: Mapping[str, Any] | None = ...) -> None: ...
65-
def runctx(
66-
self, cmd: str | CodeType, globals: Dict[str, Any] | None, locals: Mapping[str, Any] | None
67-
) -> None: ...
63+
def runctx(self, cmd: str | CodeType, globals: Dict[str, Any] | None, locals: Mapping[str, Any] | None) -> None: ...
6864
def runcall(self, __func: Callable[..., _T], *args: Any, **kwds: Any) -> _T | None: ...
6965

7066
class Breakpoint:

stdlib/@python2/builtins.pyi

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,7 @@ class unicode(basestring, Sequence[unicode]):
295295
def count(self, x: unicode) -> int: ...
296296
def decode(self, encoding: unicode = ..., errors: unicode = ...) -> unicode: ...
297297
def encode(self, encoding: unicode = ..., errors: unicode = ...) -> str: ...
298-
def endswith(
299-
self, __suffix: unicode | Tuple[unicode, ...], __start: int | None = ..., __end: int | None = ...
300-
) -> bool: ...
298+
def endswith(self, __suffix: unicode | Tuple[unicode, ...], __start: int | None = ..., __end: int | None = ...) -> bool: ...
301299
def expandtabs(self, tabsize: int = ...) -> unicode: ...
302300
def find(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...
303301
def format(self, *args: object, **kwargs: object) -> unicode: ...
@@ -327,9 +325,7 @@ class unicode(basestring, Sequence[unicode]):
327325
def rstrip(self, chars: unicode = ...) -> unicode: ...
328326
def split(self, sep: unicode | None = ..., maxsplit: int = ...) -> List[unicode]: ...
329327
def splitlines(self, keepends: bool = ...) -> List[unicode]: ...
330-
def startswith(
331-
self, __prefix: unicode | Tuple[unicode, ...], __start: int | None = ..., __end: int | None = ...
332-
) -> bool: ...
328+
def startswith(self, __prefix: unicode | Tuple[unicode, ...], __start: int | None = ..., __end: int | None = ...) -> bool: ...
333329
def strip(self, chars: unicode = ...) -> unicode: ...
334330
def swapcase(self) -> unicode: ...
335331
def title(self) -> unicode: ...
@@ -372,9 +368,7 @@ class str(Sequence[str], basestring):
372368
def count(self, x: Text, __start: int | None = ..., __end: int | None = ...) -> int: ...
373369
def decode(self, encoding: Text = ..., errors: Text = ...) -> unicode: ...
374370
def encode(self, encoding: Text = ..., errors: Text = ...) -> bytes: ...
375-
def endswith(
376-
self, __suffix: Text | Tuple[Text, ...], __start: int | None = ..., __end: int | None = ...
377-
) -> bool: ...
371+
def endswith(self, __suffix: Text | Tuple[Text, ...], __start: int | None = ..., __end: int | None = ...) -> bool: ...
378372
def expandtabs(self, tabsize: int = ...) -> str: ...
379373
def find(self, sub: Text, __start: int | None = ..., __end: int | None = ...) -> int: ...
380374
def format(self, *args: object, **kwargs: object) -> str: ...
@@ -423,9 +417,7 @@ class str(Sequence[str], basestring):
423417
@overload
424418
def split(self, sep: unicode, maxsplit: int = ...) -> List[unicode]: ...
425419
def splitlines(self, keepends: bool = ...) -> List[str]: ...
426-
def startswith(
427-
self, __prefix: Text | Tuple[Text, ...], __start: int | None = ..., __end: int | None = ...
428-
) -> bool: ...
420+
def startswith(self, __prefix: Text | Tuple[Text, ...], __start: int | None = ..., __end: int | None = ...) -> bool: ...
429421
@overload
430422
def strip(self, __chars: str = ...) -> str: ...
431423
@overload
@@ -475,9 +467,7 @@ class bytearray(MutableSequence[int], ByteString):
475467
def center(self, __width: int, __fillchar: bytes = ...) -> bytearray: ...
476468
def count(self, __sub: str) -> int: ...
477469
def decode(self, encoding: Text = ..., errors: Text = ...) -> str: ...
478-
def endswith(
479-
self, __suffix: bytes | Tuple[bytes, ...], __start: int | None = ..., __end: int | None = ...
480-
) -> bool: ...
470+
def endswith(self, __suffix: bytes | Tuple[bytes, ...], __start: int | None = ..., __end: int | None = ...) -> bool: ...
481471
def expandtabs(self, tabsize: int = ...) -> bytearray: ...
482472
def extend(self, iterable: str | Iterable[int]) -> None: ...
483473
def find(self, __sub: str, __start: int = ..., __end: int = ...) -> int: ...
@@ -504,9 +494,7 @@ class bytearray(MutableSequence[int], ByteString):
504494
def rstrip(self, __bytes: bytes | None = ...) -> bytearray: ...
505495
def split(self, sep: bytes | None = ..., maxsplit: int = ...) -> List[bytearray]: ...
506496
def splitlines(self, keepends: bool = ...) -> List[bytearray]: ...
507-
def startswith(
508-
self, __prefix: bytes | Tuple[bytes, ...], __start: int | None = ..., __end: int | None = ...
509-
) -> bool: ...
497+
def startswith(self, __prefix: bytes | Tuple[bytes, ...], __start: int | None = ..., __end: int | None = ...) -> bool: ...
510498
def strip(self, __bytes: bytes | None = ...) -> bytearray: ...
511499
def swapcase(self) -> bytearray: ...
512500
def title(self) -> bytearray: ...
@@ -972,9 +960,7 @@ def open(name: unicode | int, mode: unicode = ..., buffering: int = ...) -> Bina
972960
def ord(__c: Text | bytes) -> int: ...
973961

974962
# This is only available after from __future__ import print_function.
975-
def print(
976-
*values: object, sep: Text | None = ..., end: Text | None = ..., file: SupportsWrite[Any] | None = ...
977-
) -> None: ...
963+
def print(*values: object, sep: Text | None = ..., end: Text | None = ..., file: SupportsWrite[Any] | None = ...) -> None: ...
978964

979965
_E = TypeVar("_E", contravariant=True)
980966
_M = TypeVar("_M", contravariant=True)
@@ -1181,9 +1167,7 @@ class file(BinaryIO):
11811167
def next(self) -> str: ...
11821168
def read(self, n: int = ...) -> str: ...
11831169
def __enter__(self) -> BinaryIO: ...
1184-
def __exit__(
1185-
self, t: type | None = ..., exc: BaseException | None = ..., tb: Any | None = ...
1186-
) -> bool | None: ...
1170+
def __exit__(self, t: type | None = ..., exc: BaseException | None = ..., tb: Any | None = ...) -> bool | None: ...
11871171
def flush(self) -> None: ...
11881172
def fileno(self) -> int: ...
11891173
def isatty(self) -> bool: ...

stdlib/@python2/bz2.pyi

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ def decompress(data: bytes) -> bytes: ...
1111

1212
class BZ2File(io.BufferedIOBase, IO[bytes]):
1313
def __enter__(self: _T) -> _T: ...
14-
def __init__(
15-
self, filename: _PathOrFile, mode: str = ..., buffering: Any | None = ..., compresslevel: int = ...
16-
) -> None: ...
14+
def __init__(self, filename: _PathOrFile, mode: str = ..., buffering: Any | None = ..., compresslevel: int = ...) -> None: ...
1715
def read(self, size: int | None = ...) -> bytes: ...
1816
def read1(self, size: int = ...) -> bytes: ...
1917
def readline(self, size: SupportsIndex = ...) -> bytes: ... # type: ignore

stdlib/@python2/cgitb.pyi

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,9 @@ def text(einfo: _ExcInfo, context: int = ...) -> str: ...
1616

1717
class Hook: # undocumented
1818
def __init__(
19-
self,
20-
display: int = ...,
21-
logdir: Text | None = ...,
22-
context: int = ...,
23-
file: IO[str] | None = ...,
24-
format: str = ...,
25-
) -> None: ...
26-
def __call__(
27-
self, etype: Type[BaseException] | None, evalue: BaseException | None, etb: TracebackType | None
19+
self, display: int = ..., logdir: Text | None = ..., context: int = ..., file: IO[str] | None = ..., format: str = ...
2820
) -> None: ...
21+
def __call__(self, etype: Type[BaseException] | None, evalue: BaseException | None, etb: TracebackType | None) -> None: ...
2922
def handle(self, info: _ExcInfo | None = ...) -> None: ...
3023

3124
def handler(info: _ExcInfo | None = ...) -> None: ...

stdlib/@python2/codecs.pyi

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ from typing import (
99
Iterable,
1010
Iterator,
1111
List,
12-
1312
Protocol,
1413
Text,
1514
TextIO,
@@ -124,9 +123,7 @@ def register(__search_function: Callable[[str], CodecInfo | None]) -> None: ...
124123
def open(
125124
filename: str, mode: str = ..., encoding: str | None = ..., errors: str = ..., buffering: int = ...
126125
) -> StreamReaderWriter: ...
127-
def EncodedFile(
128-
file: IO[_Encoded], data_encoding: str, file_encoding: str | None = ..., errors: str = ...
129-
) -> StreamRecoder: ...
126+
def EncodedFile(file: IO[_Encoded], data_encoding: str, file_encoding: str | None = ..., errors: str = ...) -> StreamRecoder: ...
130127
def iterencode(iterator: Iterable[_Decoded], encoding: str, errors: str = ...) -> Generator[_Encoded, None, None]: ...
131128
def iterdecode(iterator: Iterable[_Encoded], encoding: str, errors: str = ...) -> Generator[_Decoded, None, None]: ...
132129

@@ -203,9 +200,7 @@ class StreamWriter(Codec):
203200
def writelines(self, list: Iterable[_Decoded]) -> None: ...
204201
def reset(self) -> None: ...
205202
def __enter__(self: _SW) -> _SW: ...
206-
def __exit__(
207-
self, typ: Type[BaseException] | None, exc: BaseException | None, tb: types.TracebackType | None
208-
) -> None: ...
203+
def __exit__(self, typ: Type[BaseException] | None, exc: BaseException | None, tb: types.TracebackType | None) -> None: ...
209204
def __getattr__(self, name: str, getattr: Callable[[str], Any] = ...) -> Any: ...
210205

211206
_SR = TypeVar("_SR", bound=StreamReader)
@@ -218,9 +213,7 @@ class StreamReader(Codec):
218213
def readlines(self, sizehint: int | None = ..., keepends: bool = ...) -> List[_Decoded]: ...
219214
def reset(self) -> None: ...
220215
def __enter__(self: _SR) -> _SR: ...
221-
def __exit__(
222-
self, typ: Type[BaseException] | None, exc: BaseException | None, tb: types.TracebackType | None
223-
) -> None: ...
216+
def __exit__(self, typ: Type[BaseException] | None, exc: BaseException | None, tb: types.TracebackType | None) -> None: ...
224217
def __iter__(self) -> Iterator[_Decoded]: ...
225218
def __getattr__(self, name: str, getattr: Callable[[str], Any] = ...) -> Any: ...
226219

@@ -242,9 +235,7 @@ class StreamReaderWriter(TextIO):
242235
# Same as write()
243236
def seek(self, offset: int, whence: int = ...) -> int: ...
244237
def __enter__(self: _T) -> _T: ...
245-
def __exit__(
246-
self, typ: Type[BaseException] | None, exc: BaseException | None, tb: types.TracebackType | None
247-
) -> None: ...
238+
def __exit__(self, typ: Type[BaseException] | None, exc: BaseException | None, tb: types.TracebackType | None) -> None: ...
248239
def __getattr__(self, name: str) -> Any: ...
249240
# These methods don't actually exist directly, but they are needed to satisfy the TextIO
250241
# interface. At runtime, they are delegated through __getattr__.
@@ -280,9 +271,7 @@ class StreamRecoder(BinaryIO):
280271
def reset(self) -> None: ...
281272
def __getattr__(self, name: str) -> Any: ...
282273
def __enter__(self: _SRT) -> _SRT: ...
283-
def __exit__(
284-
self, type: Type[BaseException] | None, value: BaseException | None, tb: types.TracebackType | None
285-
) -> None: ...
274+
def __exit__(self, type: Type[BaseException] | None, value: BaseException | None, tb: types.TracebackType | None) -> None: ...
286275
# These methods don't actually exist directly, but they are needed to satisfy the BinaryIO
287276
# interface. At runtime, they are delegated through __getattr__.
288277
def seek(self, offset: int, whence: int = ...) -> int: ...

0 commit comments

Comments
 (0)