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

Method function_type

mypy/checker.py:8034–8035  ·  view source on GitHub ↗
(self, func: FuncBase)

Source from the content-addressed store, hash-verified

8032 return self.analyze_iterable_item_type_without_expression(it, context)[1]
8033
8034 def function_type(self, func: FuncBase) -> FunctionLike:
8035 return function_type(func, self.named_type("builtins.function"))
8036
8037 def push_type_map(self, type_map: TypeMap, *, from_assignment: bool = True) -> None:
8038 if is_unreachable_map(type_map):

Callers 7

visit_func_defMethod · 0.95
check_func_itemMethod · 0.95
visit_decorator_innerMethod · 0.95
find_node_typeFunction · 0.45

Calls 2

named_typeMethod · 0.95
function_typeFunction · 0.90

Tested by

no test coverage detected