types-django-filter
Typing stubs for django-filter
What it is and what it does
types-django-filter is a type stub package that supplies type annotations for django-filter. It allows Python type checkers—mypy 2.3.0, pyright 1.1.411, and ty 0.0.59—to understand the types and signatures exposed by django-filter, catching type errors at development time rather than runtime. The package is maintained as part of typeshed and is tested against multiple type checker versions to ensure accuracy.
If you use django-filter in a Django project and want static type checking, installing this package alongside django-stubs enables your type checker to validate filter definitions and filter field usage. It has no runtime effect and is purely a development-time aid for catching bugs before deployment.
Use it for:
- Enable mypy or pyright to type-check Django views that use django-filter for query filtering
- Catch type errors in FilterSet definitions and filter field declarations during development
- Improve IDE autocomplete and inline type hints when writing django-filter code
- Support CI/CD pipelines that enforce type checking on Django projects using django-filter
- Validate type safety when passing filter parameters in API endpoints
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type hints for django-filter, enabling static type checkers like mypy and pyright to validate code that uses django-filter.
Yes, if you use django-filter in a project with static type checking enabled. It has low friction, no security concerns, and is actively maintained. If you don't use a type checker or don't use django-filter, there is no reason to install it.
Install
types-django-filter on PyPI
pip
pip install types-django-filteruv
uv add types-django-filterpoetry
poetry add types-django-filterInstalling types-django-filter
Before you install
Low install friction with a single runtime dependency on django-stubs. The package is actively maintained with a release 7 days ago and no known vulnerabilities.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in most commercial and open-source projects without significant restrictions.
Quickstart
pip install types-django-filter
# In your type-checked code, type checkers now understand
# the django-filter API signatures when you import it
Requires Python 3.10 or later. Intended for use with a type checker (mypy, pyright, or ty) in your development workflow.
Verify before relying
- Whether this stub package is automatically discovered by type checkers or requires explicit configuration
- Compatibility with django-filter versions outside the 26.1.* range
- How django-stubs and types-django-filter interact in a project setup
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — django-stubs |
| Maintenance | actively maintained — 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 126,004/month — #11,792 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_django_filter-26.1.0.20260807-py3-none-any.whl
Tags
More Quality Assurance packages
Coverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
ruffRuff is a Python linter and code formatter…
permissive · top 1,000 on PyPI
pexpectPexpect spawns and controls interactive console…
permissive · top 1,000 on PyPI
blackBlack reformats Python source code to a…
permissive · top 1,000 on PyPI
pytest-xdistpytest-xdist distributes pytest tests across…
permissive · top 1,000 on PyPI
cfn-lintValidates AWS CloudFormation templates in YAML…
permissive · top 1,000 on PyPI
django-filter-stubsProvides PEP-484 type stubs for django-filter…
permissive · top 15,000 on PyPI
types-dockerProvides type hints for the docker package,…
permissive · top 5,000 on PyPI
types-yt-dlpProvides type hints for yt-dlp, enabling static…
permissive · top 15,000 on PyPI
types-dateparserProvides type stubs for the dateparser package,…
permissive · top 5,000 on PyPI
types-geopandasProvides type annotations for the geopandas…
permissive · top 15,000 on PyPI
types-mypy-extensionsProvides type stubs for mypy-extensions,…
permissive · top 15,000 on PyPI
types-tensorflowProvides type hints for TensorFlow 2.18.0,…
permissive · top 15,000 on PyPI
types-openpyxlProvides type hints for openpyxl, enabling…
permissive · top 5,000 on PyPI
types-pyflakesProvides type stubs for the pyflakes static…
permissive · top 15,000 on PyPI
types-jmespathProvides type annotations for the jmespath…
permissive · top 5,000 on PyPI