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
Fix group
overload
#2565
Fix group
overload
#2565
Conversation
Out of curiosity, what does strict mode do for pyright? |
It turns on these additional checks. In my experience Pyright won't error for type vars it's not able to solve with default settings. The |
Cool, thanks. What's the default type checking mode? It's not Edit: it's basic, found it in the docs finally |
Your change fixes the issue actually, thanks! #2558 (comment) |
LGTM FWIW. Might want to add a changelog entry. |
Will this resolve the typing of: @click.group()
def cli():
pass
@cli.command()
@click.argument("version")
def release(version: str) -> None:
# ... or is this a distinct issue? |
|
This issue should be resolved by pallets/click#2565
group
overload; run Pyright in strict modegroup
overload
Click 8.1.6 released. |
Additional fixes for #2558 building on @Tinche's PR :)
Checklist:
CHANGES.rst
summarizing the change and linking to the issue... versionchanged::
entries in any relevant code docs.pre-commit
hooks and fix any issues.pytest
andtox
, no tests failed.