Skip to content

click: Unexpected keyword argument "message" for "version_option #1773

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

Closed
amal-khailtash opened this issue Dec 4, 2017 · 0 comments · Fixed by #1845
Closed

click: Unexpected keyword argument "message" for "version_option #1773

amal-khailtash opened this issue Dec 4, 2017 · 0 comments · Fixed by #1845

Comments

@amal-khailtash
Copy link

For the following code:

81: @click.version_option(
82:     __version__, '-V', '--version',
83:    message=f'%(prog)s, v%(version)s\n\n{__copyright__}')

I get this error.

cli.py:81: error: Unexpected keyword argument "message" for "version_option"
.venv/lib/mypy/typeshed/third_party/2and3/click/decorators.pyi:174: note: "version_option" defined here

No time to fix, but here to keep track.

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

Successfully merging a pull request may close this issue.

1 participant