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

Function expand_func

mypy/checker.py:8996–9000  ·  view source on GitHub ↗
(defn: FuncItem, map: dict[TypeVarId, Type])

Source from the content-addressed store, hash-verified

8994
8995
8996def expand_func(defn: FuncItem, map: dict[TypeVarId, Type]) -> FuncItem:
8997 visitor = TypeTransformVisitor(map)
8998 ret = visitor.node(defn)
8999 assert isinstance(ret, FuncItem)
9000 return ret
9001
9002
9003class TypeTransformVisitor(TransformVisitor):

Callers 1

expand_typevarsMethod · 0.85

Calls 3

isinstanceFunction · 0.85
nodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…