Set python version for mypy

This lets you catch compatibility issues regardless of the current python version used for development.
This commit is contained in:
Martijn Pieters
2023-05-09 17:30:58 +01:00
parent eda2a437a4
commit ad1eae2b4b

View File

@@ -53,6 +53,7 @@ target-version = ['py36', 'py37', 'py38', 'py39']
[tool.mypy] [tool.mypy]
files = ["fastapi_cache", "examples", "tests"] files = ["fastapi_cache", "examples", "tests"]
python_version = "3.7"
# equivalent of --strict # equivalent of --strict
warn_unused_configs = true warn_unused_configs = true
disallow_any_generics = true disallow_any_generics = true