Python stdlib module — warnings. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.filterwarnings()Neutralfilterwarnings(action, message, category, module, lineno, append)
Insert an entry into the list of warnings filters (at the front).
.formatwarning()Neutralformatwarning(message, category, filename, lineno, line)
Function to format a warning the standard way.
.resetwarnings()Neutralresetwarnings()
Clear the list of warning filters, so that no filters are active.
.showwarning()Neutralshowwarning(message, category, filename, lineno, file, line)
Hook to write a warning to a file; replace if you like.
.simplefilter()Neutralsimplefilter(action, category, lineno, append)
Insert a simple entry into the list of warnings filters (at the front).
.warn()Neutralwarn(message, category, stacklevel, source)
Issue a warning, or maybe ignore it or raise an exception.
.catch_warnings()Neutralcatch_warnings(...)
A context manager that copies and restores the warnings filter upon
| FQN | Field | |
|---|---|---|
| warnings | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
import warnings