Skip to content

Commit d43c80b

Browse files
Jacksunweicopybara-github
authored andcommitted
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
1 parent be0786e commit d43c80b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,10 @@ asyncio_default_fixture_loop_scope = "function"
157157
asyncio_mode = "auto"
158158

159159
[tool.mypy]
160+
python_version = "3.9"
160161
exclude = "tests/"
161162
plugins = ["pydantic.mypy"]
162-
strict = true
163+
# Start with non-strict mode, and swtich to strict mode later.
164+
# strict = true
163165
disable_error_code = ["import-not-found", "import-untyped", "unused-ignore"]
166+
follow_imports = "skip"

0 commit comments

Comments
 (0)