MCPcopy Index your code
hub / github.com/python/mypy / function_type

Method function_type

mypy/semanal.py:6957–6960  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6955 return self._str_type
6956
6957 def function_type(self) -> Instance:
6958 if self._function_type is None:
6959 self._function_type = self.named_type("builtins.function")
6960 return self._function_type
6961
6962 def named_type(self, fullname: str, args: list[Type] | None = None) -> Instance:
6963 sym = self.lookup_fully_qualified(fullname)

Calls 1

named_typeMethod · 0.95

Tested by

no test coverage detected