mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Add mypy error codes to '# type: ignore' comments (#6379)
This commit is contained in:
@@ -96,7 +96,7 @@ class HTTPResponse(io.BufferedIOBase, BinaryIO):
|
||||
def read(self, amt: int | None = ...) -> bytes: ...
|
||||
def read1(self, n: int = ...) -> bytes: ...
|
||||
def readinto(self, b: WriteableBuffer) -> int: ...
|
||||
def readline(self, limit: int = ...) -> bytes: ... # type: ignore
|
||||
def readline(self, limit: int = ...) -> bytes: ... # type: ignore[override]
|
||||
@overload
|
||||
def getheader(self, name: str) -> str | None: ...
|
||||
@overload
|
||||
|
||||
@@ -29,7 +29,7 @@ class Morsel(Dict[str, Any], Generic[_T]):
|
||||
def set(self, key: str, val: str, coded_val: _T, LegalChars: str = ...) -> None: ...
|
||||
def setdefault(self, key: str, val: str | None = ...) -> str: ...
|
||||
# The dict update can also get a keywords argument so this is incompatible
|
||||
@overload # type: ignore
|
||||
@overload # type: ignore[override]
|
||||
def update(self, values: Mapping[str, str]) -> None: ...
|
||||
@overload
|
||||
def update(self, values: Iterable[tuple[str, str]]) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user