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

Method __str__

numpy/_core/code_generators/genapi.py:153–159  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

151 return typename + ' ' + name
152
153 def __str__(self):
154 argstr = ', '.join([self._format_arg(*a) for a in self.args])
155 if self.doc:
156 doccomment = f'/* {self.doc} */\n'
157 else:
158 doccomment = ''
159 return f'{doccomment}{self.return_type} {self.name}({argstr})'
160
161 def api_hash(self):
162 m = hashlib.md5(usedforsecurity=False)

Callers

nothing calls this directly

Calls 2

_format_argMethod · 0.95
joinMethod · 0.80

Tested by

no test coverage detected