Represents a method signature to be added, except for `name`.
| 214 | |
| 215 | |
| 216 | class MethodSpec(NamedTuple): |
| 217 | """Represents a method signature to be added, except for `name`.""" |
| 218 | |
| 219 | args: list[Argument] |
| 220 | return_type: Type |
| 221 | self_type: Type | None = None |
| 222 | tvar_defs: list[TypeVarType] | None = None |
| 223 | |
| 224 | |
| 225 | def add_method_to_class( |
no outgoing calls
no test coverage detected
searching dependent graphs…