Skip to content

Add type annotations to open_zarr parameters

2b191dd
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

Add type annotations to open_zarr #11226

Add type annotations to open_zarr parameters
2b191dd
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Results failed Mar 19, 2026 in 0s

39 fail, 2 797 skipped, 21 762 pass in 2h 24m 33s

     14 files       14 suites   2h 24m 33s ⏱️
 24 598 tests  21 762 ✅  2 797 💤 39 ❌
267 632 runs  226 582 ✅ 41 011 💤 39 ❌

Results for commit 2b191dd.

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

1 out of 13 runs failed: test_mypy_pipe_lambda_noarg_return_type (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 31s]
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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [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/backends/zarr:1611: error: A...#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

1 out of 13 runs failed: test_mypy_pipe_lambda_posarg_return_type (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 24s]
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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [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/backends/zarr:1611: error: A...#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

1 out of 13 runs failed: test_mypy_pipe_lambda_chaining_return_type (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 23s]
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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [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/backends/zarr:1611: error: A...#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

1 out of 13 runs failed: test_mypy_pipe_lambda_missing_arg (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 23s]
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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [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`42527, 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/backends/zarr:1611: error: A...#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

1 out of 13 runs failed: test_mypy_pipe_lambda_extra_arg (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 23s]
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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [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`42527, 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/backends/zarr:1611: error: A...#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

1 out of 13 runs failed: test_mypy_pipe_function_missing_posarg (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 24s]
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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [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`42527, 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/backends/zarr:1611: error: A...#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

1 out of 13 runs failed: test_mypy_pipe_function_extra_posarg (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 23s]
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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [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`42527, 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/backends/zarr:1611: error: A...#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

1 out of 13 runs failed: test_mypy_pipe_function_missing_kwarg (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 23s]
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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [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`42527, 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/backends/zarr:1611: error: A...#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

1 out of 13 runs failed: test_mypy_pipe_function_missing_keyword (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 23s]
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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [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`42527, 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/backends/zarr:1611: error: A...#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

1 out of 13 runs failed: test_mypy_pipe_tuple_return_type_dataarray (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 23s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataarray_typing.yml#x1B[0m:133: 
#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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [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/backends/zarr:1611: error: A...#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

1 out of 13 runs failed: test_mypy_pipe_tuple_return_type_other (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 23s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataarray_typing.yml#x1B[0m:144: 
#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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [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/backends/zarr:1611: error: A...#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

1 out of 13 runs failed: test_mypy_pipe_tuple_missing_arg (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 23s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataarray_typing.yml#x1B[0m:158: 
#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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [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`42534, 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/backends/zarr:1611: error: A...#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

1 out of 13 runs failed: test_mypy_pipe_tuple_extra_arg (xarray.tests.test_dataarray_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 23s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataarray_typing.yml#x1B[0m:183: 
#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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [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`42534, 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/backends/zarr:1611: error: A...#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

1 out of 13 runs failed: test_mypy_pipe_lambda_noarg_return_type (xarray.tests.test_dataset_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 23s]
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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [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/backends/zarr:1611: error: A...#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

1 out of 13 runs failed: test_mypy_pipe_lambda_posarg_return_type (xarray.tests.test_dataset_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 23s]
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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [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/backends/zarr:1611: error: A...#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

1 out of 13 runs failed: test_mypy_pipe_lambda_chaining_return_type (xarray.tests.test_dataset_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 23s]
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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [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/backends/zarr:1611: error: A...#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

1 out of 13 runs failed: test_mypy_pipe_lambda_missing_arg (xarray.tests.test_dataset_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 23s]
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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [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`42527, 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/backends/zarr:1611: error: A...#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

1 out of 13 runs failed: test_mypy_pipe_lambda_extra_arg (xarray.tests.test_dataset_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 23s]
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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [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`42527, 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/backends/zarr:1611: error: A...#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

1 out of 13 runs failed: test_mypy_pipe_function_missing_posarg (xarray.tests.test_dataset_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 23s]
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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [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`42527, 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/backends/zarr:1611: error: A...#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

1 out of 13 runs failed: test_mypy_pipe_function_extra_posarg (xarray.tests.test_dataset_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 23s]
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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [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`42527, 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/backends/zarr:1611: error: A...#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

1 out of 13 runs failed: test_mypy_pipe_function_missing_kwarg (xarray.tests.test_dataset_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 23s]
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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [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`42527, 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/backends/zarr:1611: error: A...#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

1 out of 13 runs failed: test_mypy_pipe_function_missing_keyword (xarray.tests.test_dataset_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 23s]
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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [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`42527, 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/backends/zarr:1611: error: A...#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

1 out of 13 runs failed: test_mypy_pipe_tuple_return_type_dataset (xarray.tests.test_dataset_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 23s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataset_typing.yml#x1B[0m:132: 
#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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [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/backends/zarr:1611: error: A...#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

1 out of 13 runs failed: test_mypy_pipe_tuple_return_type_other (xarray.tests.test_dataset_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 23s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataset_typing.yml#x1B[0m:143: 
#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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [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/backends/zarr:1611: error: A...#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

1 out of 13 runs failed: test_mypy_pipe_tuple_missing_arg (xarray.tests.test_dataset_typing.yml)

artifacts/Test results for OS Linux pixi-env test-py311-with-typing pytest-addopts mypy/pytest.xml [took 24s]
Raw output
#x1B[1m#x1B[31m/home/runner/work/xarray/xarray/xarray/tests/test_dataset_typing.yml#x1B[0m:157: 
#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/backends/zarr:1611: error: Argument "filename_or_obj" to "open_dataset" has incompatible type "str | PathLike[Any] | MutableMapping[Any, Any] | None"; expected "str | PathLike[Any] | ReadBuffer[Any] | bytes | memoryview[int] | AbstractDataStore"  [arg-type] (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:11: note: Revealed type is "xarray.core.dataset.Dataset" (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:17: error: No overload variant of "pipe" of "DataWithCoords" matches argument type "Callable[[Any, Any], Dataset]"  [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`42534, T] pipe(self, func: Callable[[Dataset, **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.dataset.Dataset" (diff)#x1B[0m
#x1B[1m#x1B[31mE     main:17: error: No overload variant of "pipe" of "DataWithCoords" matches argument type "Callable[[Any, Any], Dataset]"  [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[[Dataset, **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.dataset.Dataset"...#x1B[0m
#x1B[1m#x1B[31mE     A: ../../home/runner/work/xarray/xarray/xarray/backends/zarr:1611: error: A...#x1B[0m
#x1B[1m#x1B[31mE        ^#x1B[0m