Skip to content

What version of django-stubs should I use with Django 4.2 LTS? #2101

Answered by intgr
allanlewis asked this question in Q&A
Discussion options

You must be logged in to vote

It's a tradeoff. For a project under active development, I personally would recommend upgrading to django-stubs 5.0.0 even if you use an older Django version. But be aware of the caveats below.

We still regularly fix issues and increase typing precision of features that Django has supported for a long time. Even as a Django 4.2 user, you would benefit from those improvements.

"Partial support" for older Django versions

According to our "Version compatibility" table, Django 4.1 and 4.2 remain with "partial support" by django-stubs 5.0.0. What partial support means in practice is:

  • We won't remove any APIs from stubs that are still supported by Django 4.1/4.2, even if Django 5.0 removed tho…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@allanlewis
Comment options

Answer selected by allanlewis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants