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

Class MethodContext

mypy/plugin.py:483–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481#
482# This is very similar to FunctionContext (only differences are documented).
483class MethodContext(NamedTuple):
484 type: ProperType # Base object type for method call
485 arg_types: list[list[Type]] # List of actual caller types for each formal argument
486 # see FunctionContext for details about names and kinds
487 arg_kinds: list[list[ArgKind]]
488 callee_arg_names: list[str | None]
489 arg_names: list[list[str | None]]
490 default_return_type: Type # Return type inferred by mypy
491 args: list[list[Expression]] # Lists of actual expressions for every formal argument
492 context: Context
493 api: CheckerPluginInterface
494
495
496# A context for an attribute type hook that infers the type of an attribute.

Callers 1

apply_function_pluginMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…