MCPcopy Index your code
hub / github.com/numpy/numpy / _format_arg

Method _format_arg

numpy/_core/code_generators/genapi.py:147–151  ·  view source on GitHub ↗
(self, typename, name)

Source from the content-addressed store, hash-verified

145 self.doc = doc
146
147 def _format_arg(self, typename, name):
148 if typename.endswith('*'):
149 return typename + name
150 else:
151 return typename + ' ' + name
152
153 def __str__(self):
154 argstr = ', '.join([self._format_arg(*a) for a in self.args])

Callers 1

__str__Method · 0.95

Calls 1

endswithMethod · 0.80

Tested by

no test coverage detected