Update typing for HostnameResolver #6823
Annotations
36 errors and 2 notices
Mypy-Linux+Mac+Windows:
src/trio/_socket.py#L215
src/trio/_socket.py:(215:16 - 222:9): Incompatible return value type (got "list[tuple[AddressFamily, SocketKind, int, str, tuple[str, int] | tuple[str, int, int, int]]]", expected "list[tuple[AddressFamily, SocketKind, int, str, tuple[str, int] | tuple[str, int, int, int] | tuple[int, bytes]]]") [return-value]
|
Mypy-Linux+Mac+Windows:
src/trio/_socket.py#L244
src/trio/_socket.py:(244:13 - 244:38): Argument 1 to "to_thread_run_sync" has incompatible type "Callable[[bytes | str | None, bytes | str | int | None, int, int, int, int], list[tuple[AddressFamily, SocketKind, int, str, tuple[str, int] | tuple[str, int, int, int]]]]"; expected "Callable[..., list[tuple[AddressFamily, SocketKind, int, str, tuple[str, int] | tuple[str, int, int, int] | tuple[int, bytes]]]]" [arg-type]
|
Mypy-Linux+Mac+Windows:
src/trio/_tests/test_socket.py#L213
src/trio/_tests/test_socket.py:(213:9 - 213:11): Argument 1 to "check" has incompatible type "list[tuple[AddressFamily, SocketKind, int, str, tuple[str, int] | tuple[str, int, int, int] | tuple[int, bytes]]]"; expected "list[tuple[AddressFamily, SocketKind, int, str, tuple[str, int] | tuple[str, int, int, int]]]" [arg-type]
|
Mypy-Linux+Mac+Windows:
src/trio/_tests/test_socket.py#L228
src/trio/_tests/test_socket.py:(228:9 - 228:11): Argument 1 to "check" has incompatible type "list[tuple[AddressFamily, SocketKind, int, str, tuple[str, int] | tuple[str, int, int, int] | tuple[int, bytes]]]"; expected "list[tuple[AddressFamily, SocketKind, int, str, tuple[str, int] | tuple[str, int, int, int]]]" [arg-type]
|
Ubuntu (3.13, check formatting)
Mypy found type errors.
|
Ubuntu (3.13, check formatting)
Process completed with exit code 1.
|
Windows (3.10, x64)
Canceling since a higher priority waiting request for 'refs/pull/3201/merge-CI-pull_request' exists
|
Windows (3.9, x86)
Canceling since a higher priority waiting request for 'refs/pull/3201/merge-CI-pull_request' exists
|
Windows (3.9, x86)
The operation was canceled.
|
Windows (3.9, x64)
Canceling since a higher priority waiting request for 'refs/pull/3201/merge-CI-pull_request' exists
|
Windows (3.9, x64)
The operation was canceled.
|
Windows (3.13, x64)
Canceling since a higher priority waiting request for 'refs/pull/3201/merge-CI-pull_request' exists
|
Windows (3.13, x64)
The operation was canceled.
|
Windows (3.11, x86)
Canceling since a higher priority waiting request for 'refs/pull/3201/merge-CI-pull_request' exists
|
Windows (3.11, x86)
The operation was canceled.
|
Windows (3.11, x64)
Canceling since a higher priority waiting request for 'refs/pull/3201/merge-CI-pull_request' exists
|
Windows (3.11, x64)
The operation was canceled.
|
Windows (3.10, x86)
Canceling since a higher priority waiting request for 'refs/pull/3201/merge-CI-pull_request' exists
|
Windows (3.10, x86)
The operation was canceled.
|
Windows (3.13, x86)
Canceling since a higher priority waiting request for 'refs/pull/3201/merge-CI-pull_request' exists
|
Windows (3.13, x86)
The operation was canceled.
|
Windows (3.12, x86)
Canceling since a higher priority waiting request for 'refs/pull/3201/merge-CI-pull_request' exists
|
Windows (3.12, x86)
The operation was canceled.
|
Windows (3.12, x64)
Canceling since a higher priority waiting request for 'refs/pull/3201/merge-CI-pull_request' exists
|
Windows (3.12, x64)
The operation was canceled.
|
Windows (3.9, x64, with IFS LSP)
Canceling since a higher priority waiting request for 'refs/pull/3201/merge-CI-pull_request' exists
|
Windows (3.9, x64, with IFS LSP)
The operation was canceled.
|
Ubuntu (pypy-3.10)
Canceling since a higher priority waiting request for 'refs/pull/3201/merge-CI-pull_request' exists
|
Ubuntu (pypy-3.10)
The operation was canceled.
|
macOS (pypy-3.10)
Canceling since a higher priority waiting request for 'refs/pull/3201/merge-CI-pull_request' exists
|
macOS (pypy-3.10)
The operation was canceled.
|
Windows (pypy-3.10, x64)
Canceling since a higher priority waiting request for 'refs/pull/3201/merge-CI-pull_request' exists
|
Windows (pypy-3.10, x64)
The operation was canceled.
|
Windows (3.9, x64, with Komodia LSP)
Canceling since a higher priority waiting request for 'refs/pull/3201/merge-CI-pull_request' exists
|
Windows (3.9, x64, with Komodia LSP)
The operation was canceled.
|
check
Process completed with exit code 1.
|
Mypy-Linux+Mac+Windows:
src/trio/_socket.py#L215
src/trio/_socket.py:(215:16 - 222:9): "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
|
Mypy-Linux+Mac+Windows:
src/trio/_socket.py#L215
src/trio/_socket.py:(215:16 - 222:9): Consider using "Sequence" instead, which is covariant
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
python-package-distributions
|
1.02 MB |
|