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.
Installation
pip install sqlalchemy-stubs
Important: you need to enable the plugin in your mypy config file:
[mypy]
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.
Source Distribution
sqlalchemy-stubs-0.4.tar.gz
(70.7 kB
view hashes)
Built Distribution
sqlalchemy_stubs-0.4-py3-none-any.whl
(116.1 kB
view hashes)
Close
Hashes for sqlalchemy_stubs-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5eec7aa110adf9b957b631799a72fef396b23ff99fe296df726645d01e312aa5 |
|
MD5 | b2216ceccf34ca0b03b52e97a84cf2eb |
|
BLAKE2b-256 | 62aecb215ab25b76228bc90c90444b87e323ffba58c212321a53d5bc92903098 |