Fix more test failures

This commit is contained in:
Seamus Johnston 2023-04-21 11:22:30 -05:00
parent 78aae0b7b5
commit ff8b89fa13
No known key found for this signature in database
GPG key ID: 2F21225985069105
2 changed files with 6 additions and 1 deletions

View file

@ -40,7 +40,10 @@ except NameError:
pass pass
# Attn: these imports should NOT be at the top of the file # Attn: these imports should NOT be at the top of the file
try:
from .client import CLIENT, commands from .client import CLIENT, commands
except ImportError:
pass
__all__ = [ __all__ = [
"CLIENT", "CLIENT",

View file

@ -7,6 +7,8 @@ strict_optional = True
# implicit_optional: treat arguments a None default value as implicitly Optional? # implicit_optional: treat arguments a None default value as implicitly Optional?
# `var: int = None` is equal to `var: Optional[int] = None` # `var: int = None` is equal to `var: Optional[int] = None`
implicit_optional = True 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] [mypy.plugins.django-stubs]
django_settings_module = "registrar.config.settings" django_settings_module = "registrar.config.settings"