From ad1eae2b4b60ba8864f657dd8750bc57d9abe06a Mon Sep 17 00:00:00 2001 From: Martijn Pieters Date: Tue, 9 May 2023 17:30:58 +0100 Subject: [PATCH] Set python version for mypy This lets you catch compatibility issues regardless of the current python version used for development. --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index dc2d629..488c8d5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,6 +53,7 @@ target-version = ['py36', 'py37', 'py38', 'py39'] [tool.mypy] files = ["fastapi_cache", "examples", "tests"] +python_version = "3.7" # equivalent of --strict warn_unused_configs = true disallow_any_generics = true