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

Function get_first_arg

mypy/messages.py:3163–3167  ·  view source on GitHub ↗
(tp: CallableType)

Source from the content-addressed store, hash-verified

3161
3162
3163def get_first_arg(tp: CallableType) -> str | None:
3164 definition = get_func_def(tp)
3165 if not isinstance(definition, FuncDef) or not definition.info or definition.is_static:
3166 return None
3167 return definition.original_first_arg
3168
3169
3170def variance_string(variance: int) -> str:

Callers 2

pretty_callableFunction · 0.70

Calls 2

get_func_defFunction · 0.90
isinstanceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…