Type stubs that make tortoise-orm a lot easier to work with when using type checkers.
Project description
tortoise-orm-stubs
Type stubs that make tortoise-orm a lot easier to work with when using type checkers.
Specifically,
- ForeignKeyField can be typehinted without an extra type ignore
- OneToOneField can be typehinted without an extra type ignore
- Data fields' types are now automatically typehinted as the primitive types they describe, not Field subclasses
- Data fields' types automatically reflect the value of null argument (i.e. become optional if you set null=True)
Installation
pip install tortoise-orm-stubs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for tortoise_orm_stubs-0.3.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b7262f0b5978c559fd7ab9181492d68158db8b19a80cc3067615f031ea91d87 |
|
MD5 | 13afa67ba2f5fe752e7906dd2349fa1c |
|
BLAKE2b-256 | 40047572f5b90a60c7374d10b25a19a8d11607bfb757196b6ffef03e0a2c5734 |