Skip to main content

SQLAlchemy stubs and mypy plugin

Project description

Experimental SQLAlchemy type stubs and mypy plugin

This package contains type stubs and mypy plugin to provide more precise static types and type inference for SQLAlchemy framework. SQLAlchemy uses dynamic Python features that are hard to understand by static type checkers, this is why the plugin is needed in addition to type stubs.

Currently, some basic use cases like inferring model field types are supported. The final goal is to be able to get precise types for most common patterns.


pip install sqlalchemy-stubs

Important: you need to enable the plugin in your mypy config file:

plugins = sqlmypy

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sqlalchemy-stubs, version 0.4
Filename, size File type Python version Upload date Hashes
Filename, size sqlalchemy_stubs-0.4-py3-none-any.whl (116.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size sqlalchemy-stubs-0.4.tar.gz (70.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page