Add mypy error codes to '# type: ignore' comments (#6379)

This commit is contained in:
Akuli
2021-11-26 08:07:56 +02:00
committed by GitHub
parent 1278fa86e2
commit a5bc1e037f
74 changed files with 218 additions and 202 deletions

View File

@@ -97,10 +97,10 @@ class ZipExtFile(io.BufferedIOBase):
close_fileobj: Literal[False] = ...,
) -> None: ...
def read(self, n: int | None = ...) -> bytes: ...
def readline(self, limit: int = ...) -> bytes: ... # type: ignore
def readline(self, limit: int = ...) -> bytes: ... # type: ignore[override]
def __repr__(self) -> str: ...
def peek(self, n: int = ...) -> bytes: ...
def read1(self, n: int | None) -> bytes: ... # type: ignore
def read1(self, n: int | None) -> bytes: ... # type: ignore[override]
if sys.version_info >= (3, 7):
def seek(self, offset: int, whence: int = ...) -> int: ...