Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Feb 11, 2024
1 parent 23e32d8 commit fd51ad8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion click_extra/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def cache(user_function):
ExtraGroup,
)
from .config import ConfigOption # noqa: E402
from .decorators import ( # type: ignore[no-redef] # noqa: E402
from .decorators import ( # type: ignore[no-redef,has-type] # noqa: E402
color_option,
command,
config_option,
Expand Down
12 changes: 4 additions & 8 deletions click_extra/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,14 @@ def __init__(
# Field style overrides.
message_style: IStyle | None = None,
module_style: IStyle | None = None,
module_name_style: IStyle
| None = default_theme.invoked_command, # type: ignore[has-type]
module_name_style: IStyle | None = default_theme.invoked_command,
module_file_style: IStyle | None = None,
module_version_style: IStyle | None = Style(fg="green"),
package_name_style: IStyle
| None = default_theme.invoked_command, # type: ignore[has-type]
package_name_style: IStyle | None = default_theme.invoked_command,
package_version_style: IStyle | None = Style(fg="green"),
exec_name_style: IStyle
| None = default_theme.invoked_command, # type: ignore[has-type]
exec_name_style: IStyle | None = default_theme.invoked_command,
version_style: IStyle | None = Style(fg="green"),
prog_name_style: IStyle
| None = default_theme.invoked_command, # type: ignore[has-type]
prog_name_style: IStyle | None = default_theme.invoked_command,
env_info_style: IStyle | None = Style(fg="bright_black"),
is_flag=True,
expose_value=False,
Expand Down

0 comments on commit fd51ad8

Please sign in to comment.