-
Notifications
You must be signed in to change notification settings - Fork 2.6k
mix_stderr parameter was removed from click 8.2.0 #4577
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
Thanks for the contribution! |
Also, wouldn't this change make the entire class redundant? |
Yes, seems like we may have to make this conditional on Click version. |
Ok, I will try to make it conditional 🙂 |
sorry, I couldn't think of a more pythonic way |
tests/test_black.py
Outdated
|
||
def __init__(self) -> None: | ||
super().__init__(mix_stderr=False) | ||
if Version(imp_version('click')) >= Version('8.2.0'): |
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.
if Version(imp_version('click')) >= Version('8.2.0'): | |
if Version(imp_version("click")) >= Version("8.2.0"): |
CI is unhappy because the quotes get reformatted to double quotes, but I think it should be gtg after this.
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.
ok
Not sure on the policy for updating versions, so to cope with the new click 8.3.0 version I used some code from psf#4577 for version conditional behavior. When >= 8.3.0, unset defaults are now the special UNSET sentinal instead of None. Hopefully nothing breaks on the click._utils usage since it's an _ module, might have to find a different solution if it does.
* Fix schema generation error caused by new click version Not sure on the policy for updating versions, so to cope with the new click 8.3.0 version I used some code from #4577 for version conditional behavior. When >= 8.3.0, unset defaults are now the special UNSET sentinal instead of None. Hopefully nothing breaks on the click._utils usage since it's an _ module, might have to find a different solution if it does. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add ignore for mypy error * Actually fix mypy errors with ignore * Add explanation for ignores --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
From click 8.2.0 changelog:
so
mix_stderr=False
throws an error and is redundant.