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

Class AttributeContext

mypy/plugin.py:497–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495
496# A context for an attribute type hook that infers the type of an attribute.
497class AttributeContext(NamedTuple):
498 type: ProperType # Type of object with attribute
499 default_attr_type: Type # Original attribute type
500 is_lvalue: bool # Whether the attribute is the target of an assignment
501 context: Context # Relevant location context (e.g. for error messages)
502 api: CheckerPluginInterface
503
504
505# A context for a class hook that modifies the class definition.

Callers 3

analyze_varFunction · 0.90
apply_class_attr_hookFunction · 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…