Skip to content

Conversation

crusaderky
Copy link
Contributor

No description provided.

@crusaderky
Copy link
Contributor Author

mypy failures now make CI fail: https://dev.azure.com/xarray/xarray/_build/results?buildId=511&view=logs

Now moving to solve them...

data_vars: Mapping[Hashable, Any] = None,
coords: Mapping[Hashable, Any] = None,
attrs: Mapping = None,
attrs: Mapping[Hashable, Any] = None,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Support Dataset({"x": [1, 2]}), where one of the data_vars is silently moved to coords

@crusaderky crusaderky changed the title WIP: Enforce mypy compliance in CI Enforce mypy compliance in CI Aug 9, 2019
@crusaderky
Copy link
Contributor Author

Ready for review and merge

Copy link
Collaborator

@max-sixty max-sixty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 from me, though worth waiting if anyone has objections. If this becomes a burden for new contributors, we can easily revert

@max-sixty
Copy link
Collaborator

Is there a pre-commit for mypy?

@crusaderky
Copy link
Contributor Author

@max-sixty added and tested :)

@shoyer
Copy link
Member

shoyer commented Aug 10, 2019

Okay, we can give this a try

@crusaderky
Copy link
Contributor Author

In it goes

@crusaderky crusaderky merged commit befc72f into pydata:master Aug 10, 2019
@crusaderky crusaderky deleted the mypy_ci branch August 11, 2019 08:49
dcherian added a commit to dcherian/xarray that referenced this pull request Aug 14, 2019
* upstream/master:
  chunk sparse arrays (pydata#3202)
  Annotations for .data_vars() and .coords() (pydata#3207)
  Remove duck_array_ops.as_like_arrays() (pydata#3204)
  Match mypy version between CI and pre-commit hook (pydata#3203)
  BUG fix +test .sel method gives error with float32 values (pydata#3153)
  fix precommit file (pydata#3201)
  Enforce mypy compliance in CI (pydata#3197)
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.

3 participants