Skip to content
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

No typing info for click.argument(..., shell_complete=callable) #2802

Open
craigds opened this issue Nov 8, 2024 · 0 comments
Open

No typing info for click.argument(..., shell_complete=callable) #2802

craigds opened this issue Nov 8, 2024 · 0 comments

Comments

@craigds
Copy link

craigds commented Nov 8, 2024

Run mypy on a codebase containing:

import click
def func(*args):
    ...
click.argument('myarg', shell_completion=func)

mypy doesn't recognise this kwarg at all:

foo.py:7: error: Unexpected keyword argument "shell_completion" for "argument"  [call-arg]

Environment:

  • Python version: 3.11.9
  • Click version: 8.1.7
craigds added a commit to koordinates/kart that referenced this issue Nov 9, 2024
This is absent from click's type inline types somehow.
Refs pallets/click#2802
craigds added a commit to koordinates/kart that referenced this issue Nov 10, 2024
This is absent from click's type inline types somehow.
Refs pallets/click#2802
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant