Skip to content

Commit aa35e84

Browse files
committed
fix type-hint
1 parent e30e294 commit aa35e84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

click_option_group/_core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class OptionGroup:
8686
"""
8787

8888
def __init__(self, name: ty.Optional[str] = None, *,
89-
hidden=False, help: ty.Optional[str] = None) -> None:
89+
hidden=False, help: ty.Optional[str] = None) -> None: # noqa
9090
self._name = name if name else ''
9191
self._help = inspect.cleandoc(help if help else '')
9292
self._hidden = hidden
@@ -134,7 +134,7 @@ def get_default_name(self, ctx: click.Context) -> str:
134134
option_names = '|'.join(self.get_option_names(ctx))
135135
return f'({option_names})'
136136

137-
def get_help_record(self, ctx: click.Context) -> ty.Tuple[str, str]:
137+
def get_help_record(self, ctx: click.Context) -> ty.Optional[ty.Tuple[str, str]]:
138138
"""Returns the help record for the group
139139
140140
:param ctx: Click Context object

0 commit comments

Comments
 (0)