Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Jan 9, 2025
1 parent 569350f commit 00a2275
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/click/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1026,14 +1026,14 @@ def get_help_option(self, ctx: Context) -> Option | None:
# Avoid circular import.
from .decorators import help_option

def dummy_func():
def dummy_func() -> None:
pass

# Call @help_option decorator to produce an help option with proper
# defaults and attach it to the dummy function defined above.
help_option(*help_option_names)(dummy_func)

return dummy_func.__click_params__.pop()
return dummy_func.__click_params__.pop() # type: ignore[no-any-return, attr-defined]

def make_parser(self, ctx: Context) -> _OptionParser:
"""Creates the underlying option parser for this command."""
Expand Down

0 comments on commit 00a2275

Please sign in to comment.