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

Method emit_header

mypyc/codegen/emitwrapper.py:883–890  ·  view source on GitHub ↗

Emit the function header of the wrapper implementation.

(self)

Source from the content-addressed store, hash-verified

881 return bool(self.cleanups or self.traceback_code)
882
883 def emit_header(self) -> None:
884 """Emit the function header of the wrapper implementation."""
885 input_args = ", ".join(f"PyObject *obj_{arg}" for arg in self.arg_names)
886 self.emitter.emit_line(
887 "static PyObject *{name}({input_args}) {{".format(
888 name=self.wrapper_name(), input_args=input_args
889 )
890 )
891
892 def emit_arg_processing(
893 self, error: ErrorHandler | None = None, raise_exception: bool = True

Callers 3

generate_dunder_wrapperFunction · 0.95
generate_ipow_wrapperFunction · 0.95
generate_bin_op_wrapperFunction · 0.95

Calls 4

wrapper_nameMethod · 0.95
joinMethod · 0.45
emit_lineMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected