Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #6148

Closed
wants to merge 1 commit into from

Conversation

pre-commit-ci[bot]
Copy link
Contributor

@pre-commit-ci pre-commit-ci bot commented Jan 10, 2022

updates:
- [github.com/pre-commit/mirrors-mypy: v0.930 → v0.931](pre-commit/mirrors-mypy@v0.930...v0.931)
@Illviljan
Copy link
Contributor

trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
check yaml...............................................................Passed
isort....................................................................Passed
black....................................................................Passed
black-jupyter............................................................Passed
blackdoc.................................................................Passed
flake8...................................................................Passed
mypy.....................................................................Failed
- hook id: mypy
- exit code: 1

xarray/core/indexing.py:880: error: Argument 1 to "append" of "list" has incompatible type "Union[int, Any]"; expected "ndarray[Any, dtype[Any]]"  [arg-type]
xarray/core/accessor_str.py:280: error: <nothing> not callable  [misc]
xarray/core/variable.py:1379: error: No overload variant of "pad" matches argument types "Any", "Any", "str", "Dict[str, Union[int, Tuple[int, int], Mapping[Any, Tuple[int, int]]]]"  [call-overload]
xarray/core/variable.py:1379: note: Possible overload variants:
xarray/core/variable.py:1379: note:     def [_SCT <: generic] pad(array: Union[_SupportsArray[dtype[_SCT]], Sequence[_SupportsArray[dtype[_SCT]]], Sequence[Sequence[_SupportsArray[dtype[_SCT]]]], Sequence[Sequence[Sequence[_SupportsArray[dtype[_SCT]]]]], Sequence[Sequence[Sequence[Sequence[_SupportsArray[dtype[_SCT]]]]]]], pad_width: Union[_SupportsArray[dtype[integer[Any]]], _NestedSequence[_SupportsArray[dtype[integer[Any]]]], int, _NestedSequence[int]], mode: Union[Literal['constant'], Literal['edge'], Literal['linear_ramp'], Literal['maximum'], Literal['mean'], Literal['median'], Literal['minimum'], Literal['reflect'], Literal['symmetric'], Literal['wrap'], Literal['empty']] = ..., *, stat_length: Optional[Union[_SupportsArray[dtype[integer[Any]]], _NestedSequence[_SupportsArray[dtype[integer[Any]]]], int, _NestedSequence[int]]] = ..., constant_values: Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]] = ..., end_values: Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]] = ..., reflect_type: Union[Literal['odd'], Literal['even']] = ...) -> ndarray[Any, dtype[_SCT]]
xarray/core/variable.py:1379: note:     def pad(array: Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]], pad_width: Union[_SupportsArray[dtype[integer[Any]]], _NestedSequence[_SupportsArray[dtype[integer[Any]]]], int, _NestedSequence[int]], mode: Union[Literal['constant'], Literal['edge'], Literal['linear_ramp'], Literal['maximum'], Literal['mean'], Literal['median'], Literal['minimum'], Literal['reflect'], Literal['symmetric'], Literal['wrap'], Literal['empty']] = ..., *, stat_length: Optional[Union[_SupportsArray[dtype[integer[Any]]], _NestedSequence[_SupportsArray[dtype[integer[Any]]]], int, _NestedSequence[int]]] = ..., constant_values: Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]] = ..., end_values: Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]] = ..., reflect_type: Union[Literal['odd'], Literal['even']] = ...) -> ndarray[Any, dtype[Any]]
xarray/core/variable.py:1379: note:     def [_SCT <: generic] pad(array: Union[_SupportsArray[dtype[_SCT]], Sequence[_SupportsArray[dtype[_SCT]]], Sequence[Sequence[_SupportsArray[dtype[_SCT]]]], Sequence[Sequence[Sequence[_SupportsArray[dtype[_SCT]]]]], Sequence[Sequence[Sequence[Sequence[_SupportsArray[dtype[_SCT]]]]]]], pad_width: Union[_SupportsArray[dtype[integer[Any]]], _NestedSequence[_SupportsArray[dtype[integer[Any]]]], int, _NestedSequence[int]], mode: _ModeFunc, **kwargs: Any) -> ndarray[Any, dtype[_SCT]]
xarray/core/variable.py:1379: note:     def pad(array: Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]], pad_width: Union[_SupportsArray[dtype[integer[Any]]], _NestedSequence[_SupportsArray[dtype[integer[Any]]]], int, _NestedSequence[int]], mode: _ModeFunc, **kwargs: Any) -> ndarray[Any, dtype[Any]]
xarray/core/dataset.py:6922: error: Incompatible types in assignment (expression has type "DataArray", variable has type "ndarray[Any, dtype[floating[_64Bit]]]")  [assignment]
xarray/core/dataset.py:6928: error: "ndarray[Any, dtype[floating[_64Bit]]]" has no attribute "name"  [attr-defined]
xarray/tests/test_computation.py:1937: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[signedinteger[Any]]]", variable has type "DataArray")  [assignment]
xarray/tests/test_conventions.py:297: error: Argument 2 to "assert_array_equal" has incompatible type "List[datetime]"; expected "Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]"  [arg-type]
Found 7 errors in 6 files (checked 149 source files)

Things are happening here. I suppose the update finds new errors?

@max-sixty
Copy link
Collaborator

Superseded by #6151

@max-sixty max-sixty closed this Jan 10, 2022
@max-sixty max-sixty deleted the pre-commit-ci-update-config branch January 11, 2022 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants