do not emit error, if attribute does not exist

This commit is contained in:
Maxim Kurnikov
2018-12-06 17:45:27 +03:00
parent cf6119bf9b
commit 447651c770
5 changed files with 10 additions and 4 deletions

View File

@@ -59,6 +59,7 @@ def add_settings_to_django_conf_object(ctx: ClassDefContext,
context.set_line(sym.node)
api.msg.report(f"Need type annotation for '{sym.node.name()}'", context,
severity='error', file=module_file.path)
ctx.cls.info.fallback_to_any = True
class DjangoConfSettingsInitializerHook(object):