MCPcopy
hub / github.com/python/mypy / get_func_def

Function get_func_def

mypy/nodes.py:5332–5336  ·  view source on GitHub ↗
(typ: mypy.types.CallableType)

Source from the content-addressed store, hash-verified

5330
5331
5332def get_func_def(typ: mypy.types.CallableType) -> SymbolNode | None:
5333 definition = typ.definition
5334 if isinstance(definition, Decorator):
5335 definition = definition.func
5336 return definition
5337
5338
5339def local_definitions(

Callers 4

check_overrideMethod · 0.90
pretty_callableFunction · 0.90
get_first_argFunction · 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…