module documentation

Mypy plugin for SQLAlchemy ORM.

Class SQLAlchemyPlugin Undocumented
Function 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

Undocumented

Add __sa_DeclarativeMeta and __sa_Mapped symbol to the global space for all class defs

def _base_cls_decorator_hook(ctx: ClassDefContext): (source)

Undocumented

def _base_cls_hook(ctx: ClassDefContext): (source)

Undocumented

def _cls_decorator_hook(ctx: ClassDefContext): (source)

Undocumented

def _declarative_mixin_hook(ctx: ClassDefContext): (source)

Undocumented

def _dynamic_class_hook(ctx: DynamicClassDefContext): (source)

Generate a declarative Base class when the declarative_base() function is encountered.

def _fill_in_decorators(ctx: ClassDefContext): (source)

Undocumented

def _metaclass_cls_hook(ctx: ClassDefContext): (source)

Undocumented

def _queryable_getattr_hook(ctx: AttributeContext) -> Type: (source)

Undocumented

def _set_declarative_metaclass(api: SemanticAnalyzerPluginInterface, target_cls: ClassDef): (source)

Undocumented