MCPcopy
hub / github.com/python/mypy / method_decl

Method method_decl

mypyc/ir/class_ir.py:270–274  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

268 return self.attr_details(name)[0]
269
270 def method_decl(self, name: str) -> FuncDecl:
271 for ir in self.mro:
272 if name in ir.method_decls:
273 return ir.method_decls[name]
274 raise KeyError(f"{self.name!r} has no attribute {name!r}")
275
276 def method_sig(self, name: str) -> FuncSignature:
277 return self.method_decl(name).sig

Callers 10

method_sigMethod · 0.95
has_methodMethod · 0.95
is_method_finalMethod · 0.95
call_classmethodFunction · 0.80
gen_method_callMethod · 0.80
dunder_opMethod · 0.80
visit_method_callMethod · 0.80
generate_setup_for_classFunction · 0.80
emit_method_callMethod · 0.80

Calls 1

KeyErrorClass · 0.85

Tested by

no test coverage detected