Fix mypy test (#7478)

* Fix `mypy_test.py` so that it actually tests the third-party stubs
* Upgrade to mypy 0.940
* Skip running mypy on `SQLAlchemy` stubs for now, to workaround a mypy crash.

Because we didn't set mypy's clean_exit parameter, it was exiting immediately after checking the stdlib, meaning `mypy_test.py` wasn't checking the third-party stubs at all.

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Jelle Zijlstra
2022-03-13 06:01:14 -07:00
committed by GitHub
parent 3e3cc2a6d6
commit fa332220b7
2 changed files with 15 additions and 11 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
mypy==0.931
mypy==0.940
pytype==2022.2.23; platform_system != "Windows" and python_version < "3.10"
# must match .pre-commit-config.yaml
black==22.1.0