| 481 | # |
| 482 | # This is very similar to FunctionContext (only differences are documented). |
| 483 | class 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…