mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Add mypy error codes to '# type: ignore' comments (#6379)
This commit is contained in:
@@ -570,9 +570,9 @@ class socket(_socket.socket):
|
||||
) -> BinaryIO: ...
|
||||
def sendfile(self, file: BinaryIO, offset: int = ..., count: int | None = ...) -> int: ...
|
||||
@property
|
||||
def family(self) -> AddressFamily: ... # type: ignore
|
||||
def family(self) -> AddressFamily: ... # type: ignore[override]
|
||||
@property
|
||||
def type(self) -> SocketKind: ... # type: ignore
|
||||
def type(self) -> SocketKind: ... # type: ignore[override]
|
||||
def get_inheritable(self) -> bool: ...
|
||||
def set_inheritable(self, inheritable: bool) -> None: ...
|
||||
|
||||
@@ -593,7 +593,7 @@ if sys.platform == "win32":
|
||||
def socketpair(family: int = ..., type: int = ..., proto: int = ...) -> tuple[socket, socket]: ...
|
||||
|
||||
else:
|
||||
def socketpair( # type: ignore
|
||||
def socketpair(
|
||||
family: int | AddressFamily | None = ..., type: SocketType | int = ..., proto: int = ...
|
||||
) -> tuple[socket, socket]: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user