Errors with mypy 0.740
See original GitHub issuemypy .
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:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Correct
Great, so we can make the change when we upgrade on the next release?