Skip to content

Commit

Permalink
FIX Update MyPy comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorricks committed Mar 11, 2022
1 parent e652370 commit c182e74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rich_click/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
from rich_click.rich_command import RichCommand
from rich_click.rich_group import RichGroup

# MyPy does not like star imports. Therefore when we are type checking we import them here as well.
# MyPy does not like star imports. Therefore when we are type checking, we import each individual module
# from click here. This way MyPy will recognize the import and not throw any errors. Furthermore, because of
# the TYPE_CHECKING check, it does not influence the start routine at all.
if TYPE_CHECKING:
from click import argument, Choice, option, Path, version_option # noqa: F401

Expand Down

0 comments on commit c182e74

Please sign in to comment.