Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Feb 23, 2024
1 parent a715518 commit 1e786fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion click_extra/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def patched_exit(self, code: int = 0) -> NoReturn:
raise Exit(code)


cloup.Context.exit = patched_exit
cloup.Context.exit = patched_exit # type: ignore[method-assign]
"""Monkey-patch ``cloup.Context.exit``."""


Expand Down
3 changes: 1 addition & 2 deletions click_extra/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
if TYPE_CHECKING:
from collections.abc import Sequence
from types import FrameType, ModuleType
from typing import NoReturn

from cloup.styling import IStyle

Expand Down Expand Up @@ -449,7 +448,7 @@ def print_and_exit(
ctx: Context,
param: Parameter,
value: bool,
) -> NoReturn:
) -> None:
"""Print the version string and exits.
Also stores all version string elements in the Context's ``meta`` `dict`.
Expand Down

0 comments on commit 1e786fa

Please sign in to comment.