gh-137282: Fix tab completion and dir() on concurrent.futures#137214
gh-137282: Fix tab completion and dir() on concurrent.futures#137214ZeroIntensity merged 4 commits intopython:mainfrom
Conversation
|
|
I think it'd be a good idea to make an issue, as this should probably be a release blocker. |
|
Okay, I will when not on an airplane. :) |
ZeroIntensity
left a comment
There was a problem hiding this comment.
Please add a news entry and simple test.
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
|
Yes, I'm working on that. :) |
dir(concurrent.futures) and tab completion broken
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
|
I've started by adding a small change to the all test that fails before and works after this patch. I could split it out into a separate test or even separate file if that's better. |
ZeroIntensity
left a comment
There was a problem hiding this comment.
I think that works fine as a test, we don't need anything very special.
LGTM, with a few minor comments regarding formatting.
Misc/NEWS.d/next/Library/2025-07-31-10-31-56.gh-issue-137282.GOCwIC.rst
Outdated
Show resolved
Hide resolved
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
dir(concurrent.futures) and tab completion broken|
Thanks @henryiii for the PR, and @ZeroIntensity for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
…ncurrent.futures` (pythonGH-137214) (cherry picked from commit 2a87af0) Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com> Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
|
GH-137284 is a backport of this pull request to the 3.14 branch. |
|
…ncurrent.futures` (pythonGH-137214) Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
… of `concurrent.futures` (pythonGH-137214) (python#137284) Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
I just noticed that in 3.14rc1, tab completion is broken on
concurrent.futures. Tryingdir, I got:There's a typo in the
__dir__function; it is trying to concatenate a list and a tuple. I could do[*__all__ , '__author__', '__doc__']instead if that's preferred.I didn't make an issue, but I can if that's preferred. Needs backport to 3.14. Also didn't add a test, but a test that checks
diron all modules would be useful. Static typing would have caught this.Bug introduced in #136381.