Debian Codegraph @

test-data/unit/plugins/customize_mro.py

raw
1 from __future__ import annotations
2
3 from typing import Callable
4
5 from mypy.plugin import ClassDefContext, Plugin
6
7
8 class DummyPlugin(Plugin):
9 def get_customize_class_mro_hook(self, fullname: str) -> Callable[[ClassDefContext], None]:
10 def analyze(classdef_ctx: ClassDefContext) -> None:
11 pass
12
13 return analyze
14
15
16 def plugin(version: str) -> type[DummyPlugin]:
17 return DummyPlugin