Mypy stubs for Django CTE
Project description
django-cte-stubs
Type stubs for the django-cte
package,
enabling static type checking and improved IDE experiences for Django developers.
Key Features
- Comprehensive type stubs for the
django-cte
package. - Better type hinting and autocompletions in supported IDEs.
- Compatible with Python 3.9 and above.
- Compatible with django-stubs 4.*
- Compatible with django-cte 1.3.* for now.
Installation
To get started with django-cte-stubs
, simply install the package via pip:
pip install django-cte-stubs
Once installed, setup https://github.com/typeddjango/django-stubs if not already, and add mypy_django_cte_plugin
:
plugins =
mypy_django_plugin.main,
mypy_django_cte_plugin.main,
Typing Examples
We have provided a few examples of how typing is implemented using these stubs. Explore the following modules in our test suite for more insights:
- simple.py simple CTE typing
- simple_typed.py simple CTE with strong typing
- as_manager.py with as_manager()
- raw.py With raw sql code
- recursive_example.py With a recursive CTE.
Feedback & Contributions
We encourage feedback, bug reports, and contributions:
- Issues: If you find any issues or areas of improvement, please raise an issue in our GitHub repository.
- Contributions: Check out our CONTRIBUTING.md for guidelines on how to provide contributions.
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
django-cte-stubs-0.2.0.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for django_cte_stubs-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bcfc8d7733f7c344df15a2698fcb121c8ed36097368e4a1bc7ae4cf8fdb4a30 |
|
MD5 | 6fb0b1cee9de4be299ffa3358ab1b25f |
|
BLAKE2b-256 | b78a3638a4827036d66ce5f702914b6199651e2c3555ef5952dd829995fec413 |