MCPcopy
hub / github.com/python/mypy / ClassDefContext

Class ClassDefContext

mypy/plugin.py:506–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504
505# A context for a class hook that modifies the class definition.
506class ClassDefContext(NamedTuple):
507 cls: ClassDef # The class definition
508 reason: Expression # The expression being applied (decorator, metaclass, base class)
509 api: SemanticAnalyzerPluginInterface
510
511
512# A context for dynamic class definitions like

Callers 4

calculate_class_mroMethod · 0.90
apply_hooks_to_classFunction · 0.90
_get_bool_argMethod · 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…