Basedmypy is a Python type checker that is built on top of the work done by the mypy project. It resolves fundamental issues, limitations and compromises that exist within Mypy and Python's type system.
Based features include:
Intersection
typesNone
instead of Any
TypeVar
boundsSee the the docs for a comprehensive list.
Also, take a look at BasedPyright, a based type checker and language server based on Pyright!
Basedmypy is installed as an alternative to, and in place of, the mypy
installation:
mypy test.py
python -m mypy test.py
basedmypy was created to attempt to resolve two issues within Python and Mypy's typing ecosystem and to demonstrate new typing concepts:
You can find a comprehensive list of features in the docs.
If you are using vscode, we recommend the mypy extension
If you are using IntelliJ IDEA/PyCharm, we recommend the basedtyping plugin
If you are using Pydantic, we recommend pydantic-basedtyping
Basedmypy supports a feature called baseline. It allows you to adopt new strictness or features without the burden of refactoring and fixing every new error, just save all current errors to the baseline file and resolve them at what ever pace you want. Only new code will report new errors.
Read more and see examples in the docs
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4