home / github / commits

Menu
  • GraphQL API
  • Search all tables

commits: c5dbe98ce8957b6af5efa1308756296f7fa310c1

This data as json

sha message author_date committer_date raw_author raw_committer repo author committer
c5dbe98ce8957b6af5efa1308756296f7fa310c1 Fix 2 type annotations in dataarray.py (#5548) Both `set_index` and `reset_index` are wrappers to other methods that return `"DataArray"`, not `Optional["DataArray"]`. That is, they will never return None. That's why these methods should also have only `"DataArray"` in there return signature. This way it will be possible to do something like `myarray = myarray.reset_index(...)` without getting a complaint from Mypy. For extended discussion, see https://github.com/pydata/xarray/issues/5533#issuecomment-869822366 2021-06-29T18:51:18Z 2021-06-29T18:51:18Z 2a54caf8c2fbed59442098b8531a7b2afb3d3cee cd792325681cbad9f663f2879d8b69f1edbb678f 13221727 28426758 19864447
Powered by Datasette · Queries took 1.207ms · About: xarray-datasette