Skip to content

Commit

Permalink
test: silence mypy failured due to bad click
Browse files Browse the repository at this point in the history
These type: pragmas can be removed when click 8.1.6 is out, to fix
pallets/click#2558.
  • Loading branch information
Ned Batchelder committed Jul 18, 2023
1 parent 59a6cf9 commit b3e8a8d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/scriv/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

from .cli import cli

cli(prog_name="scriv")
# This type: pragma can be removed when click 8.1.6 is out, to fix
# https://github.com/pallets/click/issues/2558.
cli(prog_name="scriv") # type: ignore[misc]
8 changes: 5 additions & 3 deletions src/scriv/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def cli() -> None: # noqa: D401
"""The main entry point for the scriv command."""


cli.add_command(create)
cli.add_command(collect)
cli.add_command(github_release)
# These type: pragmas can be removed when click 8.1.6 is out, to fix
# https://github.com/pallets/click/issues/2558.
cli.add_command(create) # type: ignore[attr-defined]
cli.add_command(collect) # type: ignore[attr-defined]
cli.add_command(github_release) # type: ignore[attr-defined]

0 comments on commit b3e8a8d

Please sign in to comment.