question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Errors with mypy 0.740

See original GitHub issue
mypy .                    

xarray/core/common.py:337: error: Too few arguments for "__init_subclass__"
xarray/core/dataset.py:398: error: Too few arguments for "__init_subclass__"
xarray/core/dataset.py:873: error: Incompatible default for argument "attrs" (default has type "object", argument has type "Optional[Dict[Hashable, Any]]")
xarray/core/dataset.py:874: error: Incompatible default for argument "indexes" (default has type "object", argument has type "Optional[Dict[Any, Any]]")
xarray/core/dataset.py:875: error: Incompatible default for argument "encoding" (default has type "object", argument has type "Optional[Dict[Any, Any]]")
xarray/core/dataset.py:922: error: Incompatible default for argument "attrs" (default has type "object", argument has type "Optional[Dict[Hashable, Any]]")
xarray/core/dataset.py:923: error: Incompatible default for argument "indexes" (default has type "object", argument has type "Dict[Hashable, Any]")
xarray/core/dataset.py:937: error: Incompatible default for argument "attrs" (default has type "object", argument has type "Dict[Hashable, Any]")
xarray/core/dataarray.py:213: error: Too few arguments for "__init_subclass__"
Found 9 errors in 3 files (checked 122 source files)

mypy --version
mypy 0.740

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
crusaderkycommented, Oct 30, 2019

Correct

0reactions
max-sixtycommented, Oct 30, 2019

Great, so we can make the change when we upgrade on the next release?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mypy 0.740 Released
Here are some errors mypy can now catch: Likely accidental formatting of bytes ("{}".format(b'123') will produce "b'123'" on Python 3 which ...
Read more >
Fix mypy issues following the update to mypy 0.740
Mypy is getting better and better, and the last update found new issues: >>> Checking type annotations nxdrive/client/remote_client.py:336: error: No ...
Read more >
mypy 0.740 - PyPI
Mypy is essentially a Python linter on steroids, and it can catch many programming errors by analyzing your program, without actually having ...
Read more >
Error codes - mypy 0.991 documentation
Error codes serve two purposes: It's possible to silence specific error codes on a line using # type: ignore[code] .
Read more >
python/typing - Gitter
when I use mypy-0.740 on https://twitter.com/cassiobotaro/status/1186646255189024773 it says error: Module 'functools' has no attribute 'cached_property'.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found