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

Method get_displayname

Tools/clinic/libclinic/function.py:252–258  ·  view source on GitHub ↗
(self, i: int)

Source from the content-addressed store, hash-verified

250 return dc.replace(self, **overrides, function=function, converter=converter)
251
252 def get_displayname(self, i: int) -> str:
253 if i == 0:
254 return 'argument'
255 if not self.is_positional_only():
256 return f'argument {self.name!r}'
257 else:
258 return f'argument {i}'
259
260 def render_docstring(self) -> str:
261 lines = [f" {self.name}"]

Callers 4

parse_one_argMethod · 0.80
parse_pos_onlyMethod · 0.80
parse_var_keywordMethod · 0.80
parse_generalMethod · 0.80

Calls 1

is_positional_onlyMethod · 0.95

Tested by

no test coverage detected