mongo/.mypy.ini
Nick Jefferies e8cf205d0b SERVER-121511: Update remaining Python 3.10 references to 3.13 (#49522)
GitOrigin-RevId: 50cfc13c4717cd6db24bd4886be5c129575ba69d
2026-03-17 22:04:32 +00:00

22 lines
666 B
INI

[mypy]
python_version = 3.13
disallow_untyped_defs = False
# Do not error on imported files since all imported files may not be mypy clean.
follow_imports = silent
# Do not error if imports are not found.
# This can be a problem with standalone scripts and relative imports.
# This will limit effectiveness but avoids mypy complaining about running code.
ignore_missing_imports = True
# Make None compatible with every type (the default prior to v 0.600)
strict_optional = False
[mypy-idl.*]
# Error if any code is missing type annotations.
disallow_untyped_defs = True
[mypy-lint.*]
# Error if any code is missing type annotations.
disallow_untyped_defs = True