Skip to content

Commit fe3c117

Browse files
committed
typing
1 parent e8666b2 commit fe3c117

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/anomalib/metrics/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def update(self, batch: Batch, *args, **kwargs) -> None:
178178
values = [getattr(batch, key) for key in self.fields]
179179
super().update(*values, *args, **kwargs) # type: ignore[misc]
180180

181-
def compute(self) -> torch.Tensor:
181+
def compute(self) -> torch.Tensor | None:
182182
"""Compute the metric value.
183183
184184
If the metric has not been updated, and metric is not in strict mode, return None.

0 commit comments

Comments
 (0)