def make_meta_nested_class_inherit_from_any(ctx: ClassDefContext) -> None: meta_node = helpers.get_nested_meta_node_for_current_class(ctx.cls.info) if meta_node is None: if not ctx.api.final_iteration: ctx.api.defer() else: meta_node.fallback_to_any = True
def make_meta_nested_class_inherit_from_any(ctx: ClassDefContext) -> None: meta_node = mypy_django_helpers.get_nested_meta_node_for_current_class(ctx.cls.info) if meta_node is None: return None meta_node.fallback_to_any = True
def run(self) -> None: meta_node = helpers.get_nested_meta_node_for_current_class(self.model_classdef.info) if meta_node is None: return None meta_node.fallback_to_any = True