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

Function get_func_def

mypyc/irbuild/util.py:255–261  ·  view source on GitHub ↗
(op: FuncDef | Decorator | OverloadedFuncDef)

Source from the content-addressed store, hash-verified

253
254
255def get_func_def(op: FuncDef | Decorator | OverloadedFuncDef) -> FuncDef:
256 if isinstance(op, OverloadedFuncDef):
257 assert op.impl
258 op = op.impl
259 if isinstance(op, Decorator):
260 op = op.func
261 return op
262
263
264def concrete_arg_kind(kind: ArgKind) -> ArgKind:

Callers 4

transform_class_defFunction · 0.90
get_module_func_defsFunction · 0.90
prepare_init_methodFunction · 0.90

Calls 1

isinstanceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…