Skip to content

ENH: allow tuple pad_width in pad #328

ENH: allow tuple pad_width in pad

ENH: allow tuple pad_width in pad #328

Triggered via pull request January 7, 2025 11:52
Status Failure
Total duration 59s
Artifacts

ci.yml

on: pull_request
Matrix: checks
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 1 warning
Format: src/array_api_extra/_funcs.py#L609
Argument of type "int | tuple[int, int] | list[tuple[int, int]]" cannot be assigned to parameter "iterable" of type "Iterable[_T@enumerate]" in function "__new__"   Type "int | tuple[int, int] | list[tuple[int, int]]" is not assignable to type "Iterable[_T@enumerate]"     "int" is incompatible with protocol "Iterable[_T@enumerate]"       "__iter__" is not present (reportArgumentType)
Format: src/array_api_extra/_funcs.py#L610
Argument type is unknown   Argument corresponds to parameter "obj" in function "len" (reportUnknownArgumentType)
Format: src/array_api_extra/_funcs.py#L621
Argument type is unknown   Argument corresponds to parameter "start" in function "__new__" (reportUnknownArgumentType)
Format: src/array_api_extra/_funcs.py#L621
Argument type is partially unknown   Argument corresponds to parameter "stop" in function "__new__"   Argument type is "Unknown | None" (reportUnknownArgumentType)
Format: src/array_api_extra/_funcs.py#L628
Argument type is partially unknown   Argument corresponds to parameter "iterable" in function "__new__"   Argument type is "list[Unknown]" (reportUnknownArgumentType)
Format: src/array_api_extra/_funcs.py#L633
Argument type is partially unknown   Argument corresponds to parameter "iterable" in function "__new__"   Argument type is "list[Unknown]" (reportUnknownArgumentType)
Format: tests/test_funcs.py#L429
Argument of type "list[tuple[Literal[1], Literal[2], Literal[3]]]" cannot be assigned to parameter "pad_width" of type "int | tuple[int, int] | list[tuple[int, int]]" in function "pad"   "tuple[Literal[1], Literal[2], Literal[3]]" is not assignable to "tuple[int, int]"     Tuple size mismatch; expected 2 but received 3 (reportArgumentType)
Format
7 errors
Format
Process completed with exit code 1.
Format
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636