class documentation

class LookupBuiltins(_ToTypeVisitor): (source)

View In Hierarchy

Look up built-in NamedTypes and give them fully-qualified names.

Method __init__ Create this visitor.
Method EnterTypeDeclUnit Undocumented
Method LeaveTypeDeclUnit Undocumented
Method VisitNamedType Do lookup on a pytd.NamedType.
Instance Variable _builtins Undocumented
Instance Variable _current_unit Undocumented
Instance Variable _full_names Undocumented
Instance Variable _prefix Undocumented

Inherited from _ToTypeVisitor:

Method EnterAlias Undocumented
Method EnterLiteral Undocumented
Method LeaveAlias Undocumented
Method LeaveLiteral Undocumented
Method to_type Undocumented
Instance Variable allow_functions Undocumented
Instance Variable allow_singletons Undocumented
Instance Variable _in_alias Undocumented
Instance Variable _in_literal Undocumented

Inherited from Visitor (via _ToTypeVisitor):

Method Enter Undocumented
Method Leave Undocumented
Method Visit Undocumented
Class Variable old_node Undocumented
Class Variable unchecked_node_names Undocumented
Class Variable visits_all_node_types Undocumented
Instance Variable enter_functions Undocumented
Instance Variable leave_functions Undocumented
Instance Variable visit_class_names Undocumented
Instance Variable visit_functions Undocumented
Class Variable _visitor_functions_cache Undocumented
def __init__(self, builtins, full_names=True, allow_singletons=False): (source)

Create this visitor. Args: builtins: The builtins module. full_names: Whether to use fully qualified names for lookup. allow_singletons: Whether to allow singleton types like Ellipsis.

def EnterTypeDeclUnit(self, unit): (source)

Undocumented

def LeaveTypeDeclUnit(self, _): (source)

Undocumented

def VisitNamedType(self, t): (source)

Do lookup on a pytd.NamedType.

_builtins = (source)

Undocumented

_current_unit = (source)

Undocumented

_full_names = (source)

Undocumented

Undocumented