mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-07 04:34:29 +08:00
10 lines
316 B
Python
10 lines
316 B
Python
from mypy.plugin import ClassDefContext
|
|
from mypy_django_plugin import helpers
|
|
|
|
|
|
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:
|
|
return None
|
|
meta_node.fallback_to_any = True
|