You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)?
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 ?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
testsClick's own test suite and CI workflowstypingType annotations and stubs
3 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.