Skip to content
Myr

Fix typing issues.

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

authored by unknown · committed by unknown · parent 7ee6b66 · Browse files · 2 files+3 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+3 added−2 removed

  • other:+3 added−2 removed

2 files+3 added−2 removed

modified:src/click/decorators.py+2 added-1 removed
1from __future__ import annotations23import inspect4import typing as t5from collections import abc6from functools import update_wrapper7from gettext import gettext as _89from .core import Argument
521 unmodified lines
531 """532533 def __init__(534 self,534 param_decls: t.Optional[t.Sequence[str]] = None,535 param_decls: abc.Sequence[str] | None = None,536 **kwargs: t.Any,537 ) -> None:538 if not param_decls:539 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: bool | None = resolve_color_default()37 self.message = message3839 def format_message(self) -> str:40 return self.message
257 unmodified lines