Get information about arguments passed into a particular frame. A tuple of four things is returned: (args, varargs, varkw, locals). 'args' is a list of the argument names. 'varargs' and 'varkw' are the names of the * and ** arguments or None. 'locals' is the locals dictionary of the
(frame)
| 1351 | ArgInfo = namedtuple('ArgInfo', 'args varargs keywords locals') |
| 1352 | |
| 1353 | def getargvalues(frame): |
| 1354 | """Get information about arguments passed into a particular frame. |
| 1355 | |
| 1356 | A tuple of four things is returned: (args, varargs, varkw, locals). |
| 1357 | 'args' is a list of the argument names. |
| 1358 | 'varargs' and 'varkw' are the names of the * and ** arguments or None. |
| 1359 | 'locals' is the locals dictionary of the given frame.""" |
| 1360 | args, varargs, varkw = getargs(frame.f_code) |
| 1361 | return ArgInfo(args, varargs, varkw, frame.f_locals) |
| 1362 | |
| 1363 | def formatannotation(annotation, base_module=None, *, quote_annotation_strings=True): |
| 1364 | if not quote_annotation_strings and isinstance(annotation, str): |
nothing calls this directly
no test coverage detected
searching dependent graphs…