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 Sep 27, 2021
1 parent badc2a2 commit dedb16b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchmetrics/metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def __setstate__(self, state: Dict[str, Any]) -> None:
def __setattr__(self, name: str, value: Any) -> None:
if name in ("higher_is_better", "is_differentiable"):
raise RuntimeError(f"Can't change const `{name}`.")
super(). __setattr__(name, value)
super().__setattr__(name, value)

@property
def device(self) -> "torch.device":
Expand Down

0 comments on commit dedb16b

Please sign in to comment.