MCPcopy Index your code
hub / github.com/python/mypy / MethodSpec

Class MethodSpec

mypy/plugins/common.py:216–222  ·  view source on GitHub ↗

Represents a method signature to be added, except for `name`.

Source from the content-addressed store, hash-verified

214
215
216class 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
225def add_method_to_class(

Callers 2

_generate_method_specsFunction · 0.90
add_method_to_classFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…