Enable Mypy `--strict` internally
See original GitHub issueI think being compatible with mypy --strict
benefits end users who are also using it, if https://github.com/encode/httpcore/pull/513 is merged then there isn’t much work left to be compatible with strict mode.
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (11 by maintainers)
Top Results From Across the Web
The mypy command line - mypy 0.991 documentation
You can see the list of flags enabled by strict mode in the full mypy --help output. Note: the exact list of flags...
Read more >Mypy Documentation - Read the Docs
1.1.3 Strict mode and configuration. Mypy has a strict mode that enables a number of additional checks, like --disallow-untyped-defs.
Read more >Ubuntu Manpage: mypy - Optional static typing for Python
You can see the list of flags enabled by strict mode in the full mypy --help output. Note: the exact list of flags...
Read more >mypy command man page - ManKier
You can also use a config file to configure mypy instead of using command line flags. ... Disable strict Optional checks (inverse: --strictoptional) ......
Read more >The Comprehensive Guide to mypy - DEV Community
Note: Starting from Python 3.7, you can add a future import, from __future__ import annotations at the top of your files, which will...
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 Free
Top 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
adding typing in anyio found a large number of type level bugs, I’m in favor of this change - so unmarking stale
Are there particular changes in the PR that you would rather see addressed separately, @tomchristie?
# type: ignore
to a particular class of errordict
andlist
typesHeadersAsMapping
versusdict
)2. is the most important for the purpose of the PR. Each correction means one less error showing up to the user in VS Code and the like.