manage.get.gov/src/mypy.ini
2023-04-21 11:22:30 -05:00

14 lines
526 B
INI

[mypy]
plugins =
mypy_django_plugin.main
# strict_optional: treat None as compatible with every type?
# `var: int` is equal to `var: int|None`
strict_optional = True
# implicit_optional: treat arguments a None default value as implicitly Optional?
# `var: int = None` is equal to `var: Optional[int] = None`
implicit_optional = True
# we'd still like mypy to succeed when 3rd party libraries are not installed
ignore_missing_imports = True
[mypy.plugins.django-stubs]
django_settings_module = "registrar.config.settings"