MCPcopy Create free account
hub / github.com/ipython/ipython / format_argspec

Function format_argspec

IPython/core/oinspect.py:218–232  ·  view source on GitHub ↗

Format argspect, convenience wrapper around inspect's. This takes a dict instead of ordered arguments and calls inspect.format_argspec with the arguments in the necessary order. DEPRECATED: Do not use; will be removed in future versions.

(argspec)

Source from the content-addressed store, hash-verified

216
217@undoc
218def format_argspec(argspec):
219 """Format argspect, convenience wrapper around inspect's.
220
221 This takes a dict instead of ordered arguments and calls
222 inspect.format_argspec with the arguments in the necessary order.
223
224 DEPRECATED: Do not use; will be removed in future versions.
225 """
226
227 warnings.warn('`format_argspec` function is deprecated as of IPython 7.10'
228 'and will be removed in future versions.', DeprecationWarning, stacklevel=2)
229
230
231 return inspect.formatargspec(argspec['args'], argspec['varargs'],
232 argspec['varkw'], argspec['defaults'])
233
234@undoc
235def call_tip(oinfo, format_call=True):

Callers 1

call_tipFunction · 0.85

Calls 1

warnMethod · 0.80

Tested by

no test coverage detected