Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Adrian Wälchli <[email protected]>
  • Loading branch information
Sean Naren and awaelchli authored Sep 16, 2021
1 parent bc1dabe commit 0ffc848
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytorch_lightning/callbacks/progress/rich_progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class CustomTimeColumn(ProgressColumn):
# Only refresh twice a second to prevent jitter
max_refresh = 0.5

def __init__(self, style: Union[str, Style]):
def __init__(self, style: Union[str, Style]) -> None:
self.style = style
super().__init__()

Expand Down Expand Up @@ -137,7 +137,7 @@ def __init__(
self,
refresh_rate: float = 1.0,
theme: RichProgressBarTheme = RichProgressBarTheme(),
):
) -> None:
if not _RICH_AVAILABLE:
raise ImportError(
"`RichProgressBar` requires `rich` to be installed. Install it by running `pip install rich`."
Expand Down

0 comments on commit 0ffc848

Please sign in to comment.