home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1006093410

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/pull/5892#issuecomment-1006093410 https://api.github.com/repos/pydata/xarray/issues/5892 1006093410 IC_kwDOAMm_X84798Ri 14371165 2022-01-05T21:31:19Z 2022-01-05T21:31:19Z MEMBER

I think it should stay required until typing has matured more, there's too much good stuff coming out each release not to make use of it immediately.

I feel having to do these kinds of workarounds is not nice and sucks out any willpower of improving typing: https://github.com/pydata/xarray/blob/e056cacdca55cc9d9118c830ca622ea965ebcdef/xarray/core/utils.py#L309-L336 (This Try Except is not necessary anymore if it stays a required dependency)

We also don't run mypy with minimum requirements so it's very likely we miss typing errors while going through these convoluted workaround paths.

Here's a few more examples from eariler PRs:

5678 - The necessary workaround if it's not required:

https://github.com/Illviljan/xarray/blob/c11aac2f00edf3584d1eec508fc850fb8f17e084/xarray/core/options.py#L4-L70+

5871 - Just a simple if check if it's required:

https://github.com/dcherian/xarray/blob/59f8586a747b1f0a7b5e42e0ee186a32a3a36819/xarray/core/_reductions.py#L10-L13

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