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)
| 216 | |
| 217 | @undoc |
| 218 | def 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 |
| 235 | def call_tip(oinfo, format_call=True): |