class documentation

class TypeIndirectionVisitor(TypeVisitor[Set[str]]): (source)

View In Hierarchy

Returns all module references within a particular type.
Method __init__ Undocumented
Method find​_modules Undocumented
Method visit​_any Undocumented
Method visit​_callable​_type Undocumented
Method visit​_deleted​_type Undocumented
Method visit​_erased​_type Undocumented
Method visit​_instance Undocumented
Method visit​_literal​_type Undocumented
Method visit​_none​_type Undocumented
Method visit​_overloaded Undocumented
Method visit​_param​_spec Undocumented
Method visit​_partial​_type Undocumented
Method visit​_tuple​_type Undocumented
Method visit​_type​_alias​_type Undocumented
Method visit​_type​_type Undocumented
Method visit​_type​_var Undocumented
Method visit​_typeddict​_type Undocumented
Method visit​_unbound​_type Undocumented
Method visit​_uninhabited​_type Undocumented
Method visit​_union​_type Undocumented
Instance Variable cache Undocumented
Instance Variable seen​_aliases Undocumented
Method _visit Undocumented
def __init__(self): (source)

Undocumented

def find_modules(self, typs): (source)

Undocumented

Parameters
typs:Iterable[types.Type]Undocumented
Returns
Set[str]Undocumented
def visit_any(self, t): (source)

Undocumented

Parameters
t:types.AnyTypeUndocumented
Returns
Set[str]Undocumented
def visit_callable_type(self, t): (source)

Undocumented

Parameters
t:types.CallableTypeUndocumented
Returns
Set[str]Undocumented
def visit_deleted_type(self, t): (source)

Undocumented

Parameters
t:types.DeletedTypeUndocumented
Returns
Set[str]Undocumented
def visit_erased_type(self, t): (source)

Undocumented

Parameters
t:types.ErasedTypeUndocumented
Returns
Set[str]Undocumented
def visit_instance(self, t): (source)

Undocumented

Parameters
t:types.InstanceUndocumented
Returns
Set[str]Undocumented
def visit_literal_type(self, t): (source)

Undocumented

Parameters
t:types.LiteralTypeUndocumented
Returns
Set[str]Undocumented
def visit_none_type(self, t): (source)

Undocumented

Parameters
t:types.NoneTypeUndocumented
Returns
Set[str]Undocumented
def visit_overloaded(self, t): (source)

Undocumented

Parameters
t:types.OverloadedUndocumented
Returns
Set[str]Undocumented
def visit_param_spec(self, t): (source)

Undocumented

Parameters
t:types.ParamSpecTypeUndocumented
Returns
Set[str]Undocumented
def visit_partial_type(self, t): (source)

Undocumented

Parameters
t:types.PartialTypeUndocumented
Returns
Set[str]Undocumented
def visit_tuple_type(self, t): (source)

Undocumented

Parameters
t:types.TupleTypeUndocumented
Returns
Set[str]Undocumented
def visit_type_alias_type(self, t): (source)

Undocumented

Parameters
t:types.TypeAliasTypeUndocumented
Returns
Set[str]Undocumented
def visit_type_type(self, t): (source)

Undocumented

Parameters
t:types.TypeTypeUndocumented
Returns
Set[str]Undocumented
def visit_type_var(self, t): (source)

Undocumented

Parameters
t:types.TypeVarTypeUndocumented
Returns
Set[str]Undocumented
def visit_typeddict_type(self, t): (source)

Undocumented

Parameters
t:types.TypedDictTypeUndocumented
Returns
Set[str]Undocumented
def visit_unbound_type(self, t): (source)

Undocumented

Parameters
t:types.UnboundTypeUndocumented
Returns
Set[str]Undocumented
def visit_uninhabited_type(self, t): (source)

Undocumented

Parameters
t:types.UninhabitedTypeUndocumented
Returns
Set[str]Undocumented
def visit_union_type(self, t): (source)

Undocumented

Parameters
t:types.UnionTypeUndocumented
Returns
Set[str]Undocumented
cache: Dict[types.Type, Set[str]] = (source)

Undocumented

seen_aliases: Set[types.TypeAliasType] = (source)

Undocumented

def _visit(self, typ_or_typs): (source)

Undocumented

Parameters
typ​_or​_typs:Union[types.Type, Iterable[types.Type]]Undocumented
Returns
Set[str]Undocumented