Improve operator.itemgetter.__call__
generic following mypy 1.11 fix
#29209
tests.yml
on: pull_request
Check typeshed structure
11s
Run pytype against the stubs
2m 2s
Run mypy on the test cases
3m 44s
Run the stub_uploader tests
4m 9s
Matrix: Run mypy against the stubs
Matrix: Test typeshed with pyright
Annotations
19 errors and 3 warnings
Test typeshed with pyright (Darwin, 3.11)
Exit code 1
|
Test typeshed with pyright (Linux, 3.10)
Exit code 1
|
Test typeshed with pyright (Darwin, 3.10)
Exit code 1
|
Test typeshed with pyright (Darwin, 3.9)
Exit code 1
|
Test typeshed with pyright (Linux, 3.9)
Exit code 1
|
Test typeshed with pyright (Windows, 3.12)
Exit code 1
|
Test typeshed with pyright (Linux, 3.11)
Exit code 1
|
Test typeshed with pyright (Linux, 3.12):
stdlib/@tests/test_cases/itertools/check_itertools_recipes.py#L288
Return type, "map[Unknown]", is partially unknown (reportUnknownVariableType)
|
Test typeshed with pyright (Linux, 3.12):
stdlib/@tests/test_cases/itertools/check_itertools_recipes.py#L288
Argument of type "Overload[(i: SupportsNext[_T@next], /) -> _T@next, (i: SupportsNext[_T@next], default: _VT@next, /) -> (_T@next | _VT@next)]" cannot be assigned to parameter "func" of type "(_T1@__new__) -> _S@map" in function "__new__"
No overloaded function matches type "(_T@unique_justseen | Iterator[_T@unique_justseen]) -> _S@map" (reportArgumentType)
|
Test typeshed with pyright (Linux, 3.12):
stdlib/@tests/test_cases/itertools/check_itertools_recipes.py#L288
Argument of type "itemgetter[int]" cannot be assigned to parameter "func" of type "(_T1@__new__) -> _S@map" in function "__new__"
Type "itemgetter[int]" is not assignable to type "(tuple[_T@unique_justseen, Iterator[_T@unique_justseen]] | tuple[bool, Iterator[_T@unique_justseen]]) -> (_T@unique_justseen | Iterator[_T@unique_justseen])"
Parameter 1: type "tuple[_T@unique_justseen, Iterator[_T@unique_justseen]] | tuple[bool, Iterator[_T@unique_justseen]]" is incompatible with type "SupportsGetItem[Any, _T@__call__]"
Type "tuple[_T@unique_justseen, Iterator[_T@unique_justseen]] | tuple[bool, Iterator[_T@unique_justseen]]" is not assignable to type "SupportsGetItem[Any, _T@__call__]"
"tuple[bool, Iterator[_T@unique_justseen]]" is incompatible with protocol "SupportsGetItem[Any, _T@__call__]"
Type parameter "_VT_co@SupportsGetItem" is covariant, but "bool | Iterator[_T@unique_justseen]" is not a subtype of "_T@__call__" (reportArgumentType)
|
|
Test typeshed with pyright (Darwin, 3.13)
Exit code 1
|
Test typeshed with pyright (Linux, 3.13)
Exit code 1
|
Test typeshed with pyright (Windows, 3.10)
Exit code 1
|
Test typeshed with pyright (Darwin, 3.12)
Exit code 1
|
Test typeshed with pyright (Windows, 3.11)
Exit code 1
|
Test typeshed with pyright (Windows, 3.9)
Exit code 1
|
Test typeshed with pyright (Windows, 3.13)
Exit code 1
|
Run mypy on the test cases
Process completed with exit code 1.
|
Test typeshed with pyright (Linux, 3.10)
Cache not found for keys: setup-uv-1-x86_64-unknown-linux-gnu-3.12.9-4103d174f93d60f41a4a18c05b4dce431c1517c3dee15bae3c3431a8b8f0570b
|
Run pytype against the stubs
Cache not found for keys: setup-uv-1-x86_64-unknown-linux-gnu-3.12.9-4103d174f93d60f41a4a18c05b4dce431c1517c3dee15bae3c3431a8b8f0570b
|
Run the stub_uploader tests
Cache not found for keys: setup-uv-1-x86_64-unknown-linux-gnu-3.12.8-420ce1c548ef1376f8515e935e6ece9ddd7688a24b510516b2a501b74e88b3e4
|