skillfed

types-django-filter

Typing stubs for django-filter

types-django-filter v26.1.0.20260807 126.0K downloads/30d#11,792 on PyPI37
Permissive license Apache-2.0 Active released

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-filter

uv

uv add types-django-filter

poetry

poetry add types-django-filter

Installing 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

Programming Language :: Python :: 3Typing :: Stubs Only

Tags

django-filter type stubstyping stubs django-filtermypy django-filtertype checking django filteringpyright django-filter annotationsdjango-filter type hintsstatic type checking django filters
type-stubsdjangostatic-analysis

More Quality Assurance packages