GeezerVison is showing github.com — ensure context `__exit__` is called during shell completion by akhil-vempali · Pull Request #2767 · pallets/click
Conversation
akhil-vempali
commented
Aug 21, 2024
•
edited by davidism
Loading
Uh oh!
There was an error while loading. Please reload this page.
The necessary modifications will ensure that the context's __exit__ function is called during shell completion, addressing the issue of unclosed file options.
fixes #2644
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
benedikt-bartscher reacted with thumbs up emoji
davidism
changed the title
[FIX] fixes #2644 https://github.com/pallets/click/issues/2644
ensure context __exit__ is called during shell completion
Aug 21, 2024
|
@akhil-vempali if you have some time available, we could hopefully get this into 8.2.0. If you do, could you make sure to:
- Fix the now broken tests.
- Add a test to prevent this from regressing.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 2, 2024
|
@akhil-vempali thank you for your work. I continued in #2800 and merged it. I added you as a co-author as you already did great work identifying where the issue was and almost fixed it as well. There was a confusion of context objects that I rectified and I added a test case so we can prevent a regression.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
parsing
Parsing, parameters, commands, chaining, context
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.
|