Skip to content

Commit

Permalink
Revert incorrect typing changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rowlando13 committed Nov 3, 2024
1 parent 27abb99 commit 7ee6b66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/click/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ class HelpOption(Option):

def __init__(
self,
param_decls: t.Optional | t.Sequence[str] = None,
param_decls: t.Optional[t.Sequence[str]] = None,
**kwargs: t.Any,
) -> None:
if not param_decls:
Expand Down
2 changes: 1 addition & 1 deletion src/click/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, message: str) -> None:
super().__init__(message)
# The context will be removed by the time we print the message, so cache
# the color settings here to be used later on (in `show`)
self.show_color: t.Optional | bool = resolve_color_default()
self.show_color: t.Optional[bool] = resolve_color_default()
self.message = message

def format_message(self) -> str:
Expand Down

0 comments on commit 7ee6b66

Please sign in to comment.