MCPcopy Create free account
hub / github.com/python/mypy / lookup_typeinfo

Method lookup_typeinfo

mypy/checker.py:7793–7798  ·  view source on GitHub ↗
(self, fullname: str)

Source from the content-addressed store, hash-verified

7791 return Instance(info, args)
7792
7793 def lookup_typeinfo(self, fullname: str) -> TypeInfo:
7794 # Assume that the name refers to a class.
7795 sym = self.lookup_qualified(fullname)
7796 node = sym.node
7797 assert isinstance(node, TypeInfo), node
7798 return node
7799
7800 def type_type(self) -> Instance:
7801 """Return instance type 'type'."""

Callers 6

named_generic_typeMethod · 0.95
iterable_item_typeMethod · 0.95
dangerous_comparisonMethod · 0.45
visit_mapping_patternMethod · 0.45

Calls 2

lookup_qualifiedMethod · 0.95
isinstanceFunction · 0.85

Tested by

no test coverage detected