Skip to content

Commit

Permalink
ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Aug 5, 2024
1 parent a49e602 commit 46cd393
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/torchmetrics/wrappers/tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def __init__(
f"The metric '{metric.__class__.__name__}' does not have a 'higher_is_better' attribute."
" Please provide the `maximize` argument explicitly."
)
self.maximize = metric.higher_is_better
self.maximize = metric.higher_is_better # type: ignore[assignment] # this is false alarm
elif isinstance(metric, MetricCollection):
self.maximize = []
for name, m in metric.items():
Expand All @@ -134,7 +134,7 @@ def __init__(
f"The metric '{name}' in the MetricCollection does not have a 'higher_is_better' attribute."
" Please provide the `maximize` argument explicitly."
)
self.maximize.append(m.higher_is_better)
self.maximize.append(m.higher_is_better) # type: ignore[arg-type] # this is false alarm
else:
rank_zero_warn(
"The default value for `maximize` will be changed from `True` to `None` in v1.7.0 of TorchMetrics,"
Expand Down

0 comments on commit 46cd393

Please sign in to comment.