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.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2a6b42dc8e9d472c049cebab4799b8504039a65102da6b4f6ebb25efffc2770 |
|
MD5 | 8d10402de75d84efe6e263c7ed684eaa |
|
BLAKE2b-256 | fb9b13f9decf27fe53837d63646094101d0aafffc88f296ba0b4ef6e34045b24 |