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

Function finish_arg

numpy/_core/code_generators/genapi.py:197–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

195 i = 0
196
197 def finish_arg():
198 if current_argument:
199 argstr = ''.join(current_argument).strip()
200 m = re.match(r'(.*(\s+|\*))(\w+)$', argstr)
201 if m:
202 typename = m.group(1).strip()
203 name = m.group(3)
204 else:
205 typename = argstr
206 name = ''
207 arguments.append((typename, name))
208 del current_argument[:]
209 while i < len(argstr):
210 c = argstr[i]
211 if c == ',':

Callers 1

split_argumentsFunction · 0.85

Calls 2

stripMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…