mypy 1.7.0 has a serious bug, avoid it
This commit is contained in:
parent
4a35193fa3
commit
e966d62a1b
2 changed files with 3 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ This project uses [mypy](https://www.mypy-lang.org/) for type-checking.
|
|||
If your system has `make`, you can type-check the project with: `make`.
|
||||
Otherwise, you need to perform several setup steps:
|
||||
* create a virtual environment at "venv": `python -mvenv venv`
|
||||
* install dependencies in the virtual environment: `venv/bin/pip install -r requirements.txt mypy`
|
||||
* install dependencies in the virtual environment: `venv/bin/pip install -r requirements.txt 'mypy!=1.7.0'`
|
||||
|
||||
Then, type check with: `venv/bin/mypy`
|
||||
|
||||
|
|
|
|||
3
Makefile
3
Makefile
|
|
@ -6,9 +6,10 @@
|
|||
mypy: venv/bin/mypy
|
||||
venv/bin/mypy
|
||||
|
||||
# Update CONTRIBUTING.md if these commands change
|
||||
venv/bin/mypy:
|
||||
python -mvenv venv
|
||||
venv/bin/pip install -r requirements.txt mypy
|
||||
venv/bin/pip install -r requirements.txt 'mypy!=1.7.0'
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
|
|
|
|||
Loading…
Reference in a new issue