module documentation

Mypy plugin for SQLAlchemy ORM.
Class ​SQLAlchemy​Plugin Undocumented
Function ​_add​_globals Add __sa_DeclarativeMeta and __sa_Mapped symbol to the global space for all class defs
Function ​_base​_cls​_decorator​_hook Undocumented
Function ​_base​_cls​_hook Undocumented
Function ​_cls​_decorator​_hook Undocumented
Function ​_declarative​_mixin​_hook Undocumented
Function ​_dynamic​_class​_hook Generate a declarative Base class when the declarative_base() function is encountered.
Function ​_fill​_in​_decorators Undocumented
Function ​_metaclass​_cls​_hook Undocumented
Function ​_queryable​_getattr​_hook Undocumented
Function ​_set​_declarative​_metaclass Undocumented
Function plugin Undocumented
def _add_globals(ctx):
Add __sa_DeclarativeMeta and __sa_Mapped symbol to the global space for all class defs
Parameters
ctx:Union[ClassDefContext, DynamicClassDefContext]Undocumented
def _base_cls_decorator_hook(ctx):

Undocumented

Parameters
ctx:ClassDefContextUndocumented
def _base_cls_hook(ctx):

Undocumented

Parameters
ctx:ClassDefContextUndocumented
def _cls_decorator_hook(ctx):

Undocumented

Parameters
ctx:ClassDefContextUndocumented
def _declarative_mixin_hook(ctx):

Undocumented

Parameters
ctx:ClassDefContextUndocumented
def _dynamic_class_hook(ctx):
Generate a declarative Base class when the declarative_base() function is encountered.
Parameters
ctx:DynamicClassDefContextUndocumented
def _fill_in_decorators(ctx):

Undocumented

Parameters
ctx:ClassDefContextUndocumented
def _metaclass_cls_hook(ctx):

Undocumented

Parameters
ctx:ClassDefContextUndocumented
def _queryable_getattr_hook(ctx):

Undocumented

Parameters
ctx:AttributeContextUndocumented
Returns
TypeUndocumented
def _set_declarative_metaclass(api, target_cls):

Undocumented

Parameters
api:SemanticAnalyzerPluginInterfaceUndocumented
target​_cls:ClassDefUndocumented
def plugin(version):

Undocumented

Parameters
version:strUndocumented
Returns
TypingType[SQLAlchemyPlugin]Undocumented