-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
gh-137282: Fix tab completion and dir() on concurrent.futures #137214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 brokenThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. 👍
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. |
|
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
dir
on all modules would be useful. Static typing would have caught this.Bug introduced in #136381.