From d43c80b7182395104af419ad0b588950f7f3af06 Mon Sep 17 00:00:00 2001 From: "Wei Sun (Jack)" Date: Mon, 26 May 2025 17:25:08 -0700 Subject: [PATCH] chore: updates mypy config in pyproject.toml. 1. Use non-strict as starting point; 2. Apply python_version to 3.9. 3. Sets `follow_imports` to skip. PiperOrigin-RevId: 763553672 --- pyproject.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1c12f6a..f16394a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -157,7 +157,10 @@ asyncio_default_fixture_loop_scope = "function" asyncio_mode = "auto" [tool.mypy] +python_version = "3.9" exclude = "tests/" plugins = ["pydantic.mypy"] -strict = true +# Start with non-strict mode, and swtich to strict mode later. +# strict = true disable_error_code = ["import-not-found", "import-untyped", "unused-ignore"] +follow_imports = "skip"