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

Class DynamicClassDefContext

mypy/plugin.py:514–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512# A context for dynamic class definitions like
513# Base = declarative_base()
514class DynamicClassDefContext(NamedTuple):
515 call: CallExpr # The r.h.s. of dynamic class definition
516 name: str # The name this class is being assigned to
517 api: SemanticAnalyzerPluginInterface
518
519
520@mypyc_attr(allow_interpreted_subclasses=True)

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…