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
Built Distribution
File details
Details for the file django-cte-stubs-0.2.1.tar.gz
.
File metadata
- Download URL: django-cte-stubs-0.2.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6307143fad3b1b93bf0f6a92c36658208682d143cda23446eeab41b90c6ac590 |
|
MD5 | a2b500adb1e5232ec52ab13ebd2983ba |
|
BLAKE2b-256 | 95f8802ab53af93780b5bf46ac8da73da039c53e68f07765a30553a475510011 |
File details
Details for the file django_cte_stubs-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: django_cte_stubs-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b5f4d42f65ba395311e7db379fbce7a8a72cb95bdca228bd6db1bd9c734853e |
|
MD5 | f02e2c0f1e46b2ef73869de014ade446 |
|
BLAKE2b-256 | 83bb6056d2b46a1edec495d3487b81949f7a945076e4e44f842ba5ab095b26d3 |