Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
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 brokenSigned-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.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Misc/NEWS.d/next/Library/2025-07-31-10-31-56.gh-issue-137282.GOCwIC.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
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. 👍
2a87af0 intopython:mainUh oh!
There was an error while loading.Please reload this page.
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 commit2a87af0)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 the3.14 branch. |
bedevere-bot commentedJul 31, 2025
|
…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>
Uh oh!
There was an error while loading.Please reload this page.
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.