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

Method builtin_type

mypy/semanal.py:6986–6988  ·  view source on GitHub ↗

Legacy function -- use named_type() instead.

(self, fully_qualified_name: str)

Source from the content-addressed store, hash-verified

6984 return Instance(node, [AnyType(TypeOfAny.unannotated)] * len(node.defn.type_vars))
6985
6986 def builtin_type(self, fully_qualified_name: str) -> Instance:
6987 """Legacy function -- use named_type() instead."""
6988 return self.named_type(fully_qualified_name)
6989
6990 def lookup_current_scope(self, name: str) -> SymbolTableNode | None:
6991 if self.locals[-1] is not None:

Callers

nothing calls this directly

Calls 1

named_typeMethod · 0.95

Tested by

no test coverage detected