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:
@@ -210,7 +210,7 @@ class _Environ(MutableMapping[AnyStr, AnyStr], Generic[AnyStr]):
|
||||
putenv: Callable[[AnyStr, AnyStr], None],
|
||||
unsetenv: Callable[[AnyStr, AnyStr], None],
|
||||
) -> None: ...
|
||||
def setdefault(self, key: AnyStr, value: AnyStr) -> AnyStr: ... # type: ignore
|
||||
def setdefault(self, key: AnyStr, value: AnyStr) -> AnyStr: ... # type: ignore[override]
|
||||
def copy(self) -> dict[AnyStr, AnyStr]: ...
|
||||
def __delitem__(self, key: AnyStr) -> None: ...
|
||||
def __getitem__(self, key: AnyStr) -> AnyStr: ...
|
||||
@@ -773,7 +773,7 @@ if sys.platform != "win32":
|
||||
|
||||
class _wrap_close(_TextIOWrapper):
|
||||
def __init__(self, stream: _TextIOWrapper, proc: Popen[str]) -> None: ...
|
||||
def close(self) -> int | None: ... # type: ignore
|
||||
def close(self) -> int | None: ... # type: ignore[override]
|
||||
|
||||
def popen(cmd: str, mode: str = ..., buffering: int = ...) -> _wrap_close: ...
|
||||
def spawnl(mode: int, file: StrOrBytesPath, arg0: StrOrBytesPath, *args: StrOrBytesPath) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user