diff --git a/src/scriv/__main__.py b/src/scriv/__main__.py index dff3758..0c5b1dd 100644 --- a/src/scriv/__main__.py +++ b/src/scriv/__main__.py @@ -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] diff --git a/src/scriv/cli.py b/src/scriv/cli.py index 88d5f57..ef1f570 100644 --- a/src/scriv/cli.py +++ b/src/scriv/cli.py @@ -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]