We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 179fd03 commit d2604b1Copy full SHA for d2604b1
mypy_django_plugin/transformers/settings.py
@@ -38,10 +38,7 @@ def get_type_of_settings_attribute(
38
sym = module.names.get(setting_name)
39
if sym is not None:
40
if sym.type is None:
41
- ctx.api.fail(
42
- f"Import cycle from Django settings module prevents type inference for {setting_name!r}",
43
- ctx.context,
44
- )
+ typechecker_api.handle_cannot_determine_type(setting_name, ctx.context)
45
return ctx.default_attr_type
46
return sym.type
47
0 commit comments