MCPcopy Index your code
hub / github.com/python/cpython / render

Method render

Tools/clinic/libclinic/clanguage.py:72–83  ·  view source on GitHub ↗
(
        self,
        clinic: Clinic,
        signatures: Iterable[Module | Class | Function]
    )

Source from the content-addressed store, hash-verified

70 self.cpp.writeline(line)
71
72 def render(
73 self,
74 clinic: Clinic,
75 signatures: Iterable[Module | Class | Function]
76 ) -> str:
77 function = None
78 for o in signatures:
79 if isinstance(o, Function):
80 if function:
81 fail("You may specify at most one function per block.\nFound a block containing at least two:\n\t" + repr(function) + " and " + repr(o))
82 function = o
83 return self.render_function(clinic, function)
84
85 def compiler_deprecated_warning(
86 self,

Callers 1

render_functionMethod · 0.45

Calls 2

render_functionMethod · 0.95
failFunction · 0.90

Tested by

no test coverage detected