home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 604506561

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/3894#issuecomment-604506561 https://api.github.com/repos/pydata/xarray/issues/3894 604506561 MDEyOklzc3VlQ29tbWVudDYwNDUwNjU2MQ== 5635139 2020-03-26T15:46:05Z 2020-03-26T15:46:05Z MEMBER

Would that be different from ensuring the input is a list?

Moreover, because Dataset__getitem__ is type unstable,

I very much empathize with the pain from methods being type unstable; indeed I think that's one of the biggest benefits of xarray over pandas. Here, it's stable over the same typed inputs. i.e. if supplied with a list, it returns with a dataset, otherwise it returns a DataArray. (or am I missing something?)

it makes it hard to detect this kind of error using mypy

Is there a way in mypy we could use something like overload to specify the above contract here, as an alternative to another method?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  588112617
Powered by Datasette · Queries took 0.718ms · About: xarray-datasette