home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 498002057

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
498002057 MDU6SXNzdWU0OTgwMDIwNTc= 3341 xarray 0.13.0 crashes mypy type checker 10931741 closed 0     4 2019-09-25T01:42:22Z 2019-09-28T20:42:21Z 2019-09-28T20:42:21Z NONE      

I have many xarray-based projects that all are regularly checked with MyPy / CI. This worked normally until xarray 0.13.0, which crashes mypy 0.701..0.720 at least.

MWE

create file foo.py containing merely python import xarray

then sh mypy foo.py

results in

C:\Miniconda3\lib\site-packages\xarray\core\dataarray.py:1858: error: INTERNAL ERROR -- please report a bug at https://github.com/python/mypy/issues version: 0.701 C:\Miniconda3\lib\site-packages\xarray\core\dataarray.py:1858: : note: please use --show-traceback to print a traceback when reporting a bug

workaround

The workaround was to include in my project's mypy.ini:

ini [mypy-xarray] follow_imports = skip

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/3341/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 4 rows from issue in issue_comments
Powered by Datasette · Queries took 81.187ms · About: xarray-datasette