(ctx: ClassDefContext)
| 25 | |
| 26 | |
| 27 | def _generate_method_specs(ctx: ClassDefContext) -> list[MethodSpec]: |
| 28 | return [ |
| 29 | MethodSpec( |
| 30 | args=[Argument(Var("arg"), ctx.api.named_type("builtins.int"), None, ARG_POS)], |
| 31 | return_type=ctx.api.named_type("builtins.str"), |
| 32 | ), |
| 33 | MethodSpec( |
| 34 | args=[Argument(Var("arg"), ctx.api.named_type("builtins.str"), None, ARG_POS)], |
| 35 | return_type=ctx.api.named_type("builtins.int"), |
| 36 | ), |
| 37 | ] |
| 38 | |
| 39 | |
| 40 | def plugin(version: str) -> type[OverloadedMethodPlugin]: |
no test coverage detected
searching dependent graphs…