class documentation

class Context: (source)

View In Hierarchy

An abstract context.

Method __init__ Undocumented
Method allow_recursive_convert Undocumented
Method check_annotation_type_mismatch Checks for a mismatch between a variable's annotation and value.
Method connect_new_cfg_node Undocumented
Method join_bindings Undocumented
Method join_cfg_nodes Get a new node to which the given nodes have been joined.
Method join_variables Undocumented
Method make_class Undocumented
Method matcher Undocumented
Method new_unsolvable Create a new unsolvable variable at node.
Instance Variable annotation_utils Undocumented
Instance Variable attribute_handler Undocumented
Instance Variable callself_stack Undocumented
Instance Variable convert Undocumented
Instance Variable converter_minimally_initialized Undocumented
Instance Variable errorlog Undocumented
Instance Variable exitpoint Undocumented
Instance Variable generate_unknowns Undocumented
Instance Variable loader Undocumented
Instance Variable method_signature_map Undocumented
Instance Variable options Undocumented
Instance Variable program Undocumented
Instance Variable pytd_convert Undocumented
Instance Variable python_version Undocumented
Instance Variable recursion_allowed Undocumented
Instance Variable root_node Undocumented
Instance Variable special_builtins Undocumented
Instance Variable store_all_calls Undocumented
Instance Variable vm Undocumented
def __init__(self, options: config.Options, loader: load_pytd.Loader, generate_unknowns: bool = False, store_all_calls: bool = False): (source)

Undocumented

@contextlib.contextmanager
def allow_recursive_convert(self): (source)

Undocumented

def check_annotation_type_mismatch(self, node, name, typ, value, stack, allow_none, details=None): (source)

Checks for a mismatch between a variable's annotation and value. Args: node: node name: variable name typ: variable annotation value: variable value stack: a frame stack for error reporting allow_none: whether a value of None is allowed for any type details: any additional details to add to the error message

def connect_new_cfg_node(self, node, new_name, condition=None): (source)

Undocumented

def join_bindings(self, node, bindings): (source)

Undocumented

def join_cfg_nodes(self, nodes): (source)

Get a new node to which the given nodes have been joined.

def join_variables(self, node, variables): (source)

Undocumented

def make_class(self, node, props): (source)

Undocumented

def matcher(self, node): (source)

Undocumented

def new_unsolvable(self, node): (source)

Create a new unsolvable variable at node.

annotation_utils = (source)

Undocumented

attribute_handler = (source)

Undocumented

callself_stack: List[cfg.Variable] = (source)

Undocumented

Undocumented

converter_minimally_initialized: bool = (source)

Undocumented

errorlog = (source)

Undocumented

Undocumented

generate_unknowns = (source)

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

pytd_convert = (source)

Undocumented

python_version: Tuple[int, int] = (source)

Undocumented

recursion_allowed: bool = (source)

Undocumented

Undocumented

Undocumented

store_all_calls = (source)

Undocumented

Undocumented