Try to use TypeVar's bounded to Hashable for built-in hashable collections and mappings
#36211
tests.yml
on: pull_request
Check typeshed structure
15s
mypy: Run test cases
5m 57s
stub_uploader tests
5m 19s
Matrix: mypy: Check stubs
Matrix: pyright: Run test cases
Annotations
35 errors
|
pyright: Run test cases (Linux, 3.14)
Exit code 1
|
|
pyright: Run test cases (Darwin, 3.11)
Exit code 1
|
|
pyright: Run test cases (Windows, 3.11)
Exit code 1
|
|
pyright: Run test cases (Linux, 3.11)
Exit code 1
|
|
|
|
pyright: Run test cases (Linux, 3.13):
stubs/networkx/networkx/algorithms/communicability_alg.pyi#L11
Type "dict[Incomplete, Incomplete]" cannot be assigned to type variable "_KT@dict"
Type "dict[Incomplete, Incomplete]" is not assignable to upper bound "Hashable" for type variable "_KT@dict"
"dict[Incomplete, Incomplete]" is incompatible with protocol "Hashable"
"__hash__" is an incompatible type
"__hash__" is not defined as a ClassVar in protocol
Type "None" is not assignable to type "() -> int" (reportInvalidTypeArguments)
|
|
pyright: Run test cases (Linux, 3.13):
stubs/networkx/networkx/algorithms/communicability_alg.pyi#L9
Type "dict[Incomplete, Incomplete]" cannot be assigned to type variable "_KT@dict"
Type "dict[Incomplete, Incomplete]" is not assignable to upper bound "Hashable" for type variable "_KT@dict"
"dict[Incomplete, Incomplete]" is incompatible with protocol "Hashable"
"__hash__" is an incompatible type
"__hash__" is not defined as a ClassVar in protocol
Type "None" is not assignable to type "() -> int" (reportInvalidTypeArguments)
|
|
pyright: Run test cases (Linux, 3.13):
stubs/jwcrypto/jwcrypto/jwk.pyi#L250
Type "JWK" cannot be assigned to type variable "_H1@set"
Type "JWK" is not assignable to upper bound "Hashable" for type variable "_H1@set"
"JWK" is incompatible with protocol "Hashable"
"__hash__" is an incompatible type
"__hash__" is not defined as a ClassVar in protocol
Type "None" is not assignable to type "() -> int" (reportInvalidTypeArguments)
|
|
pyright: Run test cases (Linux, 3.13):
stubs/jwcrypto/jwcrypto/jwk.pyi#L234
Type "JWK" cannot be assigned to type variable "_H1@set"
Type "JWK" is not assignable to upper bound "Hashable" for type variable "_H1@set"
"JWK" is incompatible with protocol "Hashable"
"__hash__" is an incompatible type
"__hash__" is not defined as a ClassVar in protocol
Type "None" is not assignable to type "() -> int" (reportInvalidTypeArguments)
|
|
pyright: Run test cases (Darwin, 3.14)
Exit code 1
|
|
pyright: Run test cases (Linux, 3.12)
Exit code 1
|
|
pyright: Run test cases (Windows, 3.14)
Exit code 1
|
|
pyright: Run test cases (Windows, 3.13)
Exit code 1
|
|
pyright: Run test cases (Darwin, 3.13)
Exit code 1
|
|
pyright: Run test cases (Darwin, 3.12)
Exit code 1
|
|
mypy: Check stubs (darwin, 3.10)
Process completed with exit code 1.
|
|
mypy: Check stubs (linux, 3.13)
Process completed with exit code 1.
|
|
mypy: Check stubs (darwin, 3.13)
Process completed with exit code 1.
|
|
mypy: Check stubs (darwin, 3.14)
Process completed with exit code 1.
|
|
mypy: Check stubs (linux, 3.12)
Process completed with exit code 1.
|
|
mypy: Check stubs (linux, 3.10)
Process completed with exit code 1.
|
|
mypy: Check stubs (win32, 3.10)
Process completed with exit code 1.
|
|
mypy: Check stubs (darwin, 3.11)
Process completed with exit code 1.
|
|
mypy: Check stubs (win32, 3.11)
Process completed with exit code 1.
|
|
mypy: Check stubs (linux, 3.11)
Process completed with exit code 1.
|
|
mypy: Check stubs (win32, 3.12)
Process completed with exit code 1.
|
|
mypy: Check stubs (win32, 3.13)
Process completed with exit code 1.
|
|
mypy: Check stubs (win32, 3.14)
Process completed with exit code 1.
|
|
mypy: Check stubs (linux, 3.14)
Process completed with exit code 1.
|
|
mypy: Check stubs (darwin, 3.15)
Process completed with exit code 1.
|
|
mypy: Check stubs (win32, 3.15)
Process completed with exit code 1.
|
|
mypy: Check stubs (linux, 3.15)
Process completed with exit code 1.
|
|
mypy: Run test cases
Process completed with exit code 1.
|
|
pyright: Run test cases (Windows, 3.12)
Exit code 1
|
|
mypy: Check stubs (darwin, 3.12)
Process completed with exit code 1.
|