Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 10, 2023
1 parent cf05877 commit 02cbe9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lightning/pytorch/loops/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class _Progress(_BaseProgress):
current: _ReadyCompletedTracker = field(default_factory=_ProcessedTracker)

def __post_init__(self) -> None:
if type(self.total) is not type(self.current): # noqa: E721
if type(self.total) is not type(self.current):
raise ValueError("The `total` and `current` instances should be of the same class")

def increment_ready(self) -> None:
Expand Down

0 comments on commit 02cbe9b

Please sign in to comment.