Language Features

PyTypes

Python stdlib module — types. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.coroutine()Neutral
#
Signature
coroutine(func)

Convert regular generator function to a coroutine.

.new_class()Neutral
#
Signature
new_class(name, bases, kwds, exec_body)

Create a class object dynamically using the appropriate metaclass.

.prepare_class()Neutral
#
Signature
prepare_class(name, bases, kwds)

Call the __prepare__ method of the appropriate metaclass.

.resolve_bases()Neutral
#
Signature
resolve_bases(bases)

Resolve MRO entries dynamically as specified by PEP 560.

.AsyncGeneratorType()Neutral
#
Signature
AsyncGeneratorType(...)

AsyncGeneratorType class.

.CellType()Neutral
#
Signature
CellType(...)

Create a new cell object.

.CodeType()Neutral
#
Signature
CodeType(...)

Create a code object. Not for the faint of heart.

.CoroutineType()Neutral
#
Signature
CoroutineType(...)

CoroutineType class.

.DynamicClassAttribute()Neutral
#
Signature
DynamicClassAttribute(...)

Route attribute access on a class to __getattr__.

.EllipsisType()Neutral
#
Signature
EllipsisType(...)

EllipsisType class.

Fully-Qualified Names

FQNField
typesfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import types