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)
| 1327 | ArgInfo = namedtuple('ArgInfo', 'args varargs keywords locals') |
| 1328 | |
| 1329 | def getargvalues(frame): |
| 1330 | """Get information about arguments passed into a particular frame. |
| 1331 | |
| 1332 | A tuple of four things is returned: (args, varargs, varkw, locals). |
| 1333 | 'args' is a list of the argument names. |
| 1334 | 'varargs' and 'varkw' are the names of the * and ** arguments or None. |
| 1335 | 'locals' is the locals dictionary of the given frame.""" |
| 1336 | args, varargs, varkw = getargs(frame.f_code) |
| 1337 | return ArgInfo(args, varargs, varkw, frame.f_locals) |
| 1338 | |
| 1339 | def formatannotation(annotation, base_module=None, *, quote_annotation_strings=True): |
| 1340 | if not quote_annotation_strings and isinstance(annotation, str): |