mirror of
https://github.com/long2ice/fastapi-cache.git
synced 2026-03-25 04:57:54 +00:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user