Python stdlib module — inspect. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.classify_class_attrs()Neutralclassify_class_attrs(cls)
Return list of attribute-descriptor tuples.
.currentframe()Neutralcurrentframe()
Return the frame of the caller or None if this is not possible.
.findsource()Neutralfindsource(object)
Return the entire source file and starting line number for an object.
.formatannotation()Neutralformatannotation(annotation, base_module)
formatannotation function.
.formatannotationrelativeto()Neutralformatannotationrelativeto(object)
formatannotationrelativeto function.
.formatargvalues()Neutralformatargvalues(args, varargs, varkw, locals, formatarg, formatvarargs, formatvarkw, formatvalue)
Format an argument spec from the 4 values returned by getargvalues.
.get_annotations()Neutralget_annotations(obj, globals, locals, eval_str)
Compute the annotations dict for an object.
.getabsfile()Neutralgetabsfile(object, _filename)
Return an absolute path to the source or compiled file for an object.
.getargs()Neutralgetargs(co)
Get information about the arguments accepted by a code object.
| FQN | Field | |
|---|---|---|
| inspect | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
import inspect