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

Method wrapper_name

mypyc/codegen/emitwrapper.py:871–877  ·  view source on GitHub ↗

Return the name of the wrapper function.

(self)

Source from the content-addressed store, hash-verified

869 self.ret_type = fn.ret_type
870
871 def wrapper_name(self) -> str:
872 """Return the name of the wrapper function."""
873 return "{}{}{}".format(
874 DUNDER_PREFIX,
875 self.target_name,
876 self.cl.name_prefix(self.emitter.names) if self.cl else "",
877 )
878
879 def use_goto(self) -> bool:
880 """Do we use a goto for error handling (instead of straight return)?"""

Callers 4

generate_dunder_wrapperFunction · 0.95
generate_ipow_wrapperFunction · 0.95
generate_bin_op_wrapperFunction · 0.95
emit_headerMethod · 0.95

Calls 2

name_prefixMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected