MCPcopy Index your code
hub / github.com/googleapis/google-api-python-client / add_param

Function add_param

scripts/describe.py:226–235  ·  view source on GitHub ↗
(pname, desc)

Source from the content-addressed store, hash-verified

224 desc = ""
225
226 def add_param(pname, desc):
227 if pname is None:
228 return
229 if "(required)" not in desc:
230 pname = pname + "=None"
231 parameters.append(pname)
232 else:
233 # required params should be put straight into sorted_parameters
234 # to maintain order for positional args
235 sorted_parameters.append(pname)
236
237 for line in args:
238 m = re.search(r"^\s+([a-zA-Z0-9_]+): (.*)", line)

Callers 1

method_paramsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…