Registry / database / types-django-filter

types-django-filter

JSON →
library25.2.0.20260508pypypiunverified

PEP 561 type stubs for django-filter, provided by typeshed. Version 25.2.0.20260508. Updated frequently alongside typeshed releases.

pip install types-django-filter
INSTALL
IMPORT
SIG · TYPES-DJANGO-FILTE
T
types-django-filter
databasepythonv25.2.0.20260508
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

FilterSet
from django_filters_stubs import FilterSet
from django_filters import FilterSet

Define a basic FilterSet; types-django-filter provides type hints for FilterSet, fields, and lookup expressions.

from django_filters import FilterSet, CharFilter from myapp.models import MyModel class MyFilterSet(FilterSet): name = CharFilter(lookup_expr='icontains') class Meta: model = MyModel fields = ['name']
Debug
Known issues
deprecatedThis stub package is automatically published by typeshed and may lag behind django-filter releases. Always check compatibility.
fix
Use a compatible version or consider maintaining your own stubs if you need the latest django-filter features.
affects: *
gotchaInstalling types-django-filter without django-stubs can lead to incomplete type inference for model fields inside FilterSet.Meta.
fix
Install django-stubs alongside types-django-filter: pip install django-stubs
affects: >=3.10
gotchaThe stubs may not cover custom filter methods or dynamic lookup expressions. You might need to add your own type annotations.
fix
Add # type: ignore or provide custom type stubs for unsupported patterns.
affects: *
breakingVersioning changes: types-django-filter uses CalVer (YY.MM.PATCH). Ensure pip resolves the correct version with your Python version (requires >=3.10).
fix
Use Python 3.10+ and pin version if needed: pip install types-django-filter==25.2.0.20260508
affects: 25.2.0.20260508
Upgrade
Version history
25.2.0.20260508latest on PyPI · released May 8, 2026
Audit
Dependencies
django-filterrequiredRuntime dependency; stubs provide typing for django-filter.
django-stubsoptionalMany types reference Django internals; recommended for full type checking.
Agent activity
15 hits · last 30 days
node
14
OpenAI (training)
1
Resources
types-django-filter — pip install types-django-filter · libregistry