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

Function callable_name

mypy/messages.py:3321–3325  ·  view source on GitHub ↗
(type: FunctionLike)

Source from the content-addressed store, hash-verified

3319
3320
3321def callable_name(type: FunctionLike) -> str | None:
3322 name = type.get_name()
3323 if name is not None and name[0] != "<":
3324 return f'"{name}"'.replace(" of ", '" of "')
3325 return name
3326
3327
3328def for_function(callee: CallableType) -> str:

Callers 11

untyped_function_callMethod · 0.85
incompatible_argumentMethod · 0.85
too_few_argumentsMethod · 0.85
note_defined_hereMethod · 0.85
does_not_return_valueMethod · 0.85
for_functionFunction · 0.85

Calls 2

replaceMethod · 0.80
get_nameMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…