(ctx: ClassDefContext)
| 16 | |
| 17 | |
| 18 | def add_extra_methods_hook(ctx: ClassDefContext) -> None: |
| 19 | add_method(ctx, "foo_classmethod", [], NoneType(), is_classmethod=True) |
| 20 | add_method( |
| 21 | ctx, |
| 22 | "foo_staticmethod", |
| 23 | [Argument(Var(""), ctx.api.named_type("builtins.int"), None, ARG_POS)], |
| 24 | ctx.api.named_type("builtins.str"), |
| 25 | is_staticmethod=True, |
| 26 | ) |
| 27 | |
| 28 | |
| 29 | def plugin(version: str) -> type[ClassMethodPlugin]: |
nothing calls this directly
no test coverage detected
searching dependent graphs…