Skip to content

Fix broken Zarr test

0a3b89b
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Fix broken Zarr test #10109

Fix broken Zarr test
0a3b89b
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Results failed Mar 10, 2025 in 0s

42 fail, 2 378 skipped, 20 127 pass in 1h 38m 17s

     13 files       13 suites   1h 38m 17s ⏱️
 22 547 tests  20 127 ✅  2 378 💤 42 ❌
191 390 runs  165 303 ✅ 26 003 💤 84 ❌

Results for commit 0a3b89b.

Annotations

Check warning on line 0 in xarray.tests.test_dataarray_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_lambda_noarg_return_type (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 21s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 25s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataarray_typing.yml#x1B[0m:7: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:5: note: Revealed type is "xarray.core.dataarray.DataArray" (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:5: note: Revealed type is "xarray.core.dataarray.DataArray" (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:5: note: Revealed type is "xarray.core.dataarray.DataArray"...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error:...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m

Check warning on line 0 in xarray.tests.test_dataarray_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_lambda_posarg_return_type (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 15s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 17s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataarray_typing.yml#x1B[0m:15: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:5: note: Revealed type is "builtins.str" (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:5: note: Revealed type is "builtins.str" (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:5: note: Revealed type is "builtins.str"...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error:...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m

Check warning on line 0 in xarray.tests.test_dataarray_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_lambda_chaining_return_type (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 15s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 17s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataarray_typing.yml#x1B[0m:23: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:5: note: Revealed type is "builtins.int" (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:5: note: Revealed type is "builtins.int" (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:5: note: Revealed type is "builtins.int"...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error:...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m

Check warning on line 0 in xarray.tests.test_dataarray_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_lambda_missing_arg (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 15s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 17s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataarray_typing.yml#x1B[0m:30: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: error: No overload variant of "pipe" of "DataWithCoords" matches argument type "Callable[[Any, Any], Any]"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: note: Possible overload variants:     (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: note:     def [P`37104, T] pipe(self, func: Callable[[DataArray, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:4: error: No overload variant of "pipe" of "DataWithCoords" matches argument type "Callable[[Any, Any], Any]"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: note: Possible overload variants:     (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: note:     def [P`2, T] pipe(self, func: Callable[[DataArray, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:4: error: No overload variant of "pipe" of "DataWithCoords" matches...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error:...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m

Check warning on line 0 in xarray.tests.test_dataarray_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_lambda_extra_arg (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 15s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 17s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataarray_typing.yml#x1B[0m:42: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: error: No overload variant of "pipe" of "DataWithCoords" matches argument types "Callable[[Any], Any]", "str"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: note: Possible overload variants:     (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: note:     def [P`37104, T] pipe(self, func: Callable[[DataArray, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:4: error: No overload variant of "pipe" of "DataWithCoords" matches argument types "Callable[[Any], Any]", "str"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: note: Possible overload variants:     (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: note:     def [P`2, T] pipe(self, func: Callable[[DataArray, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:4: error: No overload variant of "pipe" of "DataWithCoords" matches...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error:...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m

Check warning on line 0 in xarray.tests.test_dataarray_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_function_missing_posarg (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 15s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 17s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataarray_typing.yml#x1B[0m:57: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: error: No overload variant of "pipe" of "DataWithCoords" matches argument type "Callable[[DataArray, int], DataArray]"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note: Possible overload variants:     (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [P`37104, T] pipe(self, func: Callable[[DataArray, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:7: error: No overload variant of "pipe" of "DataWithCoords" matches argument type "Callable[[DataArray, int], DataArray]"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note: Possible overload variants:     (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [P`2, T] pipe(self, func: Callable[[DataArray, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:7: error: No overload variant of "pipe" of "DataWithCoords" matches...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error:...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m

Check warning on line 0 in xarray.tests.test_dataarray_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_function_extra_posarg (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 15s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 17s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataarray_typing.yml#x1B[0m:72: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: error: No overload variant of "pipe" of "DataWithCoords" matches argument types "Callable[[DataArray, int], DataArray]", "int", "str"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note: Possible overload variants:     (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [P`37104, T] pipe(self, func: Callable[[DataArray, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:7: error: No overload variant of "pipe" of "DataWithCoords" matches argument types "Callable[[DataArray, int], DataArray]", "int", "str"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note: Possible overload variants:     (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [P`2, T] pipe(self, func: Callable[[DataArray, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:7: error: No overload variant of "pipe" of "DataWithCoords" matches...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error:...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m

Check warning on line 0 in xarray.tests.test_dataarray_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_function_missing_kwarg (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 15s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 17s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataarray_typing.yml#x1B[0m:87: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: error: No overload variant of "pipe" of "DataWithCoords" matches argument types "Callable[[DataArray, int, NamedArg(int, 'kwonly')], DataArray]", "int"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note: Possible overload variants:     (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [P`37104, T] pipe(self, func: Callable[[DataArray, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:7: error: No overload variant of "pipe" of "DataWithCoords" matches argument types "Callable[[DataArray, int, NamedArg(int, 'kwonly')], DataArray]", "int"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note: Possible overload variants:     (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [P`2, T] pipe(self, func: Callable[[DataArray, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:7: error: No overload variant of "pipe" of "DataWithCoords" matches...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error:...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m

Check warning on line 0 in xarray.tests.test_dataarray_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_function_missing_keyword (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 15s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 17s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataarray_typing.yml#x1B[0m:102: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: error: No overload variant of "pipe" of "DataWithCoords" matches argument types "Callable[[DataArray, int, NamedArg(int, 'kwonly')], DataArray]", "int", "int"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note: Possible overload variants:     (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [P`37104, T] pipe(self, func: Callable[[DataArray, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:7: error: No overload variant of "pipe" of "DataWithCoords" matches argument types "Callable[[DataArray, int, NamedArg(int, 'kwonly')], DataArray]", "int", "int"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note: Possible overload variants:     (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [P`2, T] pipe(self, func: Callable[[DataArray, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:7: error: No overload variant of "pipe" of "DataWithCoords" matches...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error:...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m

Check warning on line 0 in xarray.tests.test_dataarray_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_function_unexpected_keyword (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 15s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 17s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataarray_typing.yml#x1B[0m:117: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/common:723: note: "pipe" of "DataWithCoords" defined here (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: error: Unexpected keyword argument "kw" for "pipe" of "DataWithCoords"  [call-arg] (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:7: error: Unexpected keyword argument "kw" for "pipe" of "DataWithCoords"  [call-arg] (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:7: error: Unexpected keyword argument "kw" for "pipe" of "DataWithC...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/common:723: note: "pipe...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m

Check warning on line 0 in xarray.tests.test_dataarray_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_tuple_return_type_dataarray (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 15s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 17s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataarray_typing.yml#x1B[0m:129: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note: Revealed type is "xarray.core.dataarray.DataArray" (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:7: note: Revealed type is "xarray.core.dataarray.DataArray" (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:7: note: Revealed type is "xarray.core.dataarray.DataArray"...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error:...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m

Check warning on line 0 in xarray.tests.test_dataarray_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_tuple_return_type_other (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 15s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 17s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataarray_typing.yml#x1B[0m:140: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:8: note: Revealed type is "builtins.int" (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:8: note: Revealed type is "builtins.int" (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:8: note: Revealed type is "builtins.int"...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error:...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m

Check warning on line 0 in xarray.tests.test_dataarray_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_tuple_missing_arg (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 15s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 17s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataarray_typing.yml#x1B[0m:154: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:11: note: Revealed type is "xarray.core.dataarray.DataArray" (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:17: error: No overload variant of "pipe" of "DataWithCoords" matches argument type "Callable[[Any, Any], DataArray]"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:17: note: Possible overload variants:    (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:17: note:     def [P`37111, T] pipe(self, func: Callable[[DataArray, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:17: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:11: note: Revealed type is "xarray.core.dataarray.DataArray" (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:17: error: No overload variant of "pipe" of "DataWithCoords" matches argument type "Callable[[Any, Any], DataArray]"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:17: note: Possible overload variants:    (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:17: note:     def [P`9, T] pipe(self, func: Callable[[DataArray, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:17: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:11: note: Revealed type is "xarray.core.dataarray.DataArray"...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error:...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m

Check warning on line 0 in xarray.tests.test_dataarray_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_tuple_extra_arg (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 15s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 17s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataarray_typing.yml#x1B[0m:179: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:11: note: Revealed type is "xarray.core.dataarray.DataArray" (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:17: error: No overload variant of "pipe" of "DataWithCoords" matches argument types "Callable[[Any, Any], DataArray]", "int", "str"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:17: note: Possible overload variants:    (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:17: note:     def [P`37111, T] pipe(self, func: Callable[[DataArray, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:17: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:11: note: Revealed type is "xarray.core.dataarray.DataArray" (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:17: error: No overload variant of "pipe" of "DataWithCoords" matches argument types "Callable[[Any, Any], DataArray]", "int", "str"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:17: note: Possible overload variants:    (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:17: note:     def [P`9, T] pipe(self, func: Callable[[DataArray, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:17: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:11: note: Revealed type is "xarray.core.dataarray.DataArray"...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error:...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m

Check warning on line 0 in xarray.tests.test_dataset_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_lambda_noarg_return_type (xarray.tests.test_dataset_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 15s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 17s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataset_typing.yml#x1B[0m:7: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:5: note: Revealed type is "xarray.core.dataset.Dataset" (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:5: note: Revealed type is "xarray.core.dataset.Dataset" (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:5: note: Revealed type is "xarray.core.dataset.Dataset"...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error:...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m

Check warning on line 0 in xarray.tests.test_dataset_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_lambda_posarg_return_type (xarray.tests.test_dataset_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 15s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 17s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataset_typing.yml#x1B[0m:15: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:5: note: Revealed type is "builtins.str" (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:5: note: Revealed type is "builtins.str" (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:5: note: Revealed type is "builtins.str"...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error:...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m

Check warning on line 0 in xarray.tests.test_dataset_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_lambda_chaining_return_type (xarray.tests.test_dataset_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 15s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 17s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataset_typing.yml#x1B[0m:23: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:5: note: Revealed type is "builtins.int" (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:5: note: Revealed type is "builtins.int" (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:5: note: Revealed type is "builtins.int"...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error:...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m

Check warning on line 0 in xarray.tests.test_dataset_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_lambda_missing_arg (xarray.tests.test_dataset_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 15s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 17s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataset_typing.yml#x1B[0m:30: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: error: No overload variant of "pipe" of "DataWithCoords" matches argument type "Callable[[Any, Any], Any]"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: note: Possible overload variants:     (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: note:     def [P`37104, T] pipe(self, func: Callable[[Dataset, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:4: error: No overload variant of "pipe" of "DataWithCoords" matches argument type "Callable[[Any, Any], Any]"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: note: Possible overload variants:     (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: note:     def [P`2, T] pipe(self, func: Callable[[Dataset, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:4: error: No overload variant of "pipe" of "DataWithCoords" matches...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error:...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m

Check warning on line 0 in xarray.tests.test_dataset_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_lambda_extra_arg (xarray.tests.test_dataset_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 15s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 17s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataset_typing.yml#x1B[0m:42: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: error: No overload variant of "pipe" of "DataWithCoords" matches argument types "Callable[[Any], Any]", "str"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: note: Possible overload variants:     (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: note:     def [P`37104, T] pipe(self, func: Callable[[Dataset, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:4: error: No overload variant of "pipe" of "DataWithCoords" matches argument types "Callable[[Any], Any]", "str"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: note: Possible overload variants:     (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: note:     def [P`2, T] pipe(self, func: Callable[[Dataset, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:4: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:4: error: No overload variant of "pipe" of "DataWithCoords" matches...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error:...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m

Check warning on line 0 in xarray.tests.test_dataset_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_function_missing_posarg (xarray.tests.test_dataset_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 15s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 17s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataset_typing.yml#x1B[0m:57: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: error: No overload variant of "pipe" of "DataWithCoords" matches argument type "Callable[[Dataset, int], Dataset]"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note: Possible overload variants:     (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [P`37104, T] pipe(self, func: Callable[[Dataset, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:7: error: No overload variant of "pipe" of "DataWithCoords" matches argument type "Callable[[Dataset, int], Dataset]"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note: Possible overload variants:     (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [P`2, T] pipe(self, func: Callable[[Dataset, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:7: error: No overload variant of "pipe" of "DataWithCoords" matches...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error:...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m

Check warning on line 0 in xarray.tests.test_dataset_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_function_extra_posarg (xarray.tests.test_dataset_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 15s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 17s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataset_typing.yml#x1B[0m:72: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: error: No overload variant of "pipe" of "DataWithCoords" matches argument types "Callable[[Dataset, int], Dataset]", "int", "str"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note: Possible overload variants:     (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [P`37104, T] pipe(self, func: Callable[[Dataset, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:7: error: No overload variant of "pipe" of "DataWithCoords" matches argument types "Callable[[Dataset, int], Dataset]", "int", "str"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note: Possible overload variants:     (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [P`2, T] pipe(self, func: Callable[[Dataset, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:7: error: No overload variant of "pipe" of "DataWithCoords" matches...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error:...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m

Check warning on line 0 in xarray.tests.test_dataset_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_function_missing_kwarg (xarray.tests.test_dataset_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 15s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 17s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataset_typing.yml#x1B[0m:87: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: error: No overload variant of "pipe" of "DataWithCoords" matches argument types "Callable[[Dataset, int, NamedArg(int, 'kwonly')], Dataset]", "int"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note: Possible overload variants:     (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [P`37104, T] pipe(self, func: Callable[[Dataset, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:7: error: No overload variant of "pipe" of "DataWithCoords" matches argument types "Callable[[Dataset, int, NamedArg(int, 'kwonly')], Dataset]", "int"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note: Possible overload variants:     (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [P`2, T] pipe(self, func: Callable[[Dataset, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:7: error: No overload variant of "pipe" of "DataWithCoords" matches...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error:...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m

Check warning on line 0 in xarray.tests.test_dataset_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_function_missing_keyword (xarray.tests.test_dataset_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 15s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 17s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataset_typing.yml#x1B[0m:102: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: error: No overload variant of "pipe" of "DataWithCoords" matches argument types "Callable[[Dataset, int, NamedArg(int, 'kwonly')], Dataset]", "int", "int"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note: Possible overload variants:     (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [P`37104, T] pipe(self, func: Callable[[Dataset, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:7: error: No overload variant of "pipe" of "DataWithCoords" matches argument types "Callable[[Dataset, int, NamedArg(int, 'kwonly')], Dataset]", "int", "int"  [call-overload] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note: Possible overload variants:     (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [P`2, T] pipe(self, func: Callable[[Dataset, **P], T], *args: P.args, **kwargs: P.kwargs) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:7: error: No overload variant of "pipe" of "DataWithCoords" matches...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error:...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m

Check warning on line 0 in xarray.tests.test_dataset_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_function_unexpected_keyword (xarray.tests.test_dataset_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 15s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 17s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataset_typing.yml#x1B[0m:117: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/common:723: note: "pipe" of "DataWithCoords" defined here (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: error: Unexpected keyword argument "kw" for "pipe" of "DataWithCoords"  [call-arg] (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:7: error: Unexpected keyword argument "kw" for "pipe" of "DataWithCoords"  [call-arg] (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:7: error: Unexpected keyword argument "kw" for "pipe" of "DataWithC...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/common:723: note: "pipe...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m

Check warning on line 0 in xarray.tests.test_dataset_typing.yml

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 12 runs failed: test_mypy_pipe_tuple_return_type_dataset (xarray.tests.test_dataset_typing.yml)

artifacts/Test results for Linux-3.10 mypy/pytest.xml [took 15s]
artifacts/Test results for Linux-3.13 mypy/pytest.xml [took 17s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataset_typing.yml#x1B[0m:129: 
#x1B[1m#x1B[31mE   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: #x1B[0m
#x1B[1m#x1B[31mE   Actual:#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/groupby:530: error: Argument 1 to "from_product" of "MultiIndex" has incompatible type "Generator[ndarray[Any, Any], None, None]"; expected "Sequence[Any]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1051: error: Argument 2 to "MultiIndex" has incompatible type "list[ndarray[Any, dtype[Any]]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     ../../home/runner/work/xarray/xarray/xarray/core/indexes:1123: error: Argument 2 to "MultiIndex" has incompatible type "list[Iterable[int]]"; expected "Sequence[Sequence[int]]"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:7: note: Revealed type is "xarray.core.dataset.Dataset" (diff)#x1B[0m
#x1B[1m#x1B[31mE   Expected:#x1B[0m
#x1B[1m#x1B[31mE     main:7: note: Revealed type is "xarray.core.dataset.Dataset" (diff)#x1B[0m
#x1B[1m#x1B[31mE   Alignment of first line difference:#x1B[0m
#x1B[1m#x1B[31mE     E: main:7: note: Revealed type is "xarray.core.dataset.Dataset"...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/core/coordinates:186: error:...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m