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

Method has_method

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

Source from the content-addressed store, hash-verified

277 return self.method_decl(name).sig
278
279 def has_method(self, name: str) -> bool:
280 try:
281 self.method_decl(name)
282 except KeyError:
283 return False
284 return True
285
286 def is_method_final(self, name: str) -> bool:
287 subs = self.subclasses()

Callers 15

is_method_finalMethod · 0.95
make_for_loop_generatorFunction · 0.80
create_ne_from_eqFunction · 0.80
emit_yield_from_or_awaitFunction · 0.80
translate_method_callFunction · 0.80
gen_method_callMethod · 0.80
dunder_opMethod · 0.80
bool_valueMethod · 0.80
add_bool_branchMethod · 0.80
translate_eq_cmpMethod · 0.80

Calls 1

method_declMethod · 0.95

Tested by

no test coverage detected