Skip to content

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

Closed
@amal-khailtash

Description

@amal-khailtash

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions