Skip to content

Commit

Permalink
Fix typing issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rowlando13 committed Nov 5, 2024
1 parent 7ee6b66 commit dea4ff7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/click/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import inspect
import typing as t
from collections import abc
from functools import update_wrapper
from gettext import gettext as _

Expand Down Expand Up @@ -531,7 +532,7 @@ class HelpOption(Option):

def __init__(
self,
param_decls: t.Optional[t.Sequence[str]] = None,
param_decls: abc.Sequence[str] | None = 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: bool | None = resolve_color_default()
self.message = message

def format_message(self) -> str:
Expand Down

0 comments on commit dea4ff7

Please sign in to comment.