class documentation

class StaticModule: (source)

View In Hierarchy

Proxy to a module object that avoids executing arbitrary code.

Method __getattr__ Attempt to load an attribute "statically", via :func:`ast.literal_eval`.
Method __init__ Undocumented
Method _find_assignments Undocumented
def __getattr__(self, attr): (source)

Attempt to load an attribute "statically", via :func:`ast.literal_eval`.

def __init__(self, name: str, spec: ModuleSpec): (source)

Undocumented

def _find_assignments(self) -> Iterator[Tuple[ast.AST, ast.AST]]: (source)

Undocumented