Skip to content

Drop support for Python 3.10 - #3920

Merged
Rowlando13 merged 1 commit into
pallets:mainfrom
kdeldycke:drop-python-3.10
Nov 12, 2026
Merged

Rowlando13 merged 1 commit into
pallets:mainfrom
kdeldycke:drop-python-3.10

Conversation

@kdeldycke

Copy link
Copy Markdown
Collaborator

This drop Python 3.10 and raise the minimum Python to 3.11, as discussed in #3154 (comment) , now that Python 3.10 is no longer maintained.

This has the advantage of simplifying some typing imports.

@kdeldycke kdeldycke added this to the 8.6.0 milestone Nov 12, 2026
@kdeldycke kdeldycke added tests Click's own test suite and CI workflows typing Type annotations and stubs labels Nov 12, 2026
@Rowlando13
Rowlando13 merged commit e38188e into pallets:main Nov 12, 2026
13 checks passed
@davidism

Copy link
Copy Markdown
Member

Just to be sure, I usually do a regex search for 3(\s*[.,]\s*)?(9|10|11|12) to find any references we may have left in comments and various other places. It catches "3.10", "3, 10", and "310". The other versions are to account for "<" and ">" sorts of references. It looks like not much changed here, did you do a search and not find anything (that happens a lot now, it used to be more scattered)?

@kdeldycke

Copy link
Copy Markdown
Collaborator Author

Just to be sure, I usually do a regex search for 3(\s*[.,]\s*)?(9|10|11|12) to find any references we may have left in comments and various other places. It catches "3.10", "3, 10", and "310". The other versions are to account for "<" and ">" sorts of references. It looks like not much changed here, did you do a search and not find anything (that happens a lot now, it used to be more scattered)?

Ah, that regex is neat! Usually I grep on 3\.11, 3\.10, (3, 11), (3, 10) and version_info and that's enough to identify the area of the code that needs a look. Then a pass of type checking, linters and tests seals the deal.

But yeah, surprisingly not that much hacks or workarounds left to remove. It looks like we already did a great job cleaning them up in the last few releases (like Python 2 compatibility, type modernization, dependency removal etc). Did you find something worth modernizing with Python 3.11 ?

@kdeldycke
kdeldycke deleted the drop-python-3.10 branch November 13, 2026 05:52
@kdeldycke kdeldycke mentioned this pull request Nov 14, 2026
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

tests Click's own test suite and CI workflows typing Type annotations and stubs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants