MCPcopy Create free account
hub / github.com/python/mypy / FunctionSigContext

Class FunctionSigContext

mypy/plugin.py:436–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434# function. Note that argument types aren't available yet. If you need them,
435# you have to use a method hook instead.
436class FunctionSigContext(NamedTuple):
437 args: list[list[Expression]] # Actual expressions for each formal argument
438 default_signature: CallableType # Original signature of the method
439 context: Context # Relevant location context (e.g. for error messages)
440 api: CheckerPluginInterface
441
442
443# A context for a function hook that infers the return type of a function with

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…