Skip to content
Myr

Resolve typing errors.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by unknown · committed by unknown · parent 5a299c6 · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:src/click/decorators.py+1 added-1 removed
529 unmodified lines
530 """531532 def __init__(533 self,534 param_decls: t.Optional[t.Sequence[str]] = None,534 param_decls: t.Optional | t.Sequence[str] = None,535 **kwargs: t.Any,536 ) -> None:537 if not param_decls:538 param_decls = ("--help",)
26 unmodified lines
modified:src/click/exceptions.py+1 added-1 removed
31 unmodified lines
32 def __init__(self, message: str) -> None:33 super().__init__(message)34 # The context will be removed by the time we print the message, so cache35 # the color settings here to be used later on (in `show`)36 self.show_color: t.Optional[bool] = resolve_color_default()36 self.show_color: t.Optional | bool = resolve_color_default()37 self.message = message3839 def format_message(self) -> str:40 return self.message
257 unmodified lines