Skip to content

Commit 2d5f204

Browse files
committed
Fix typing
1 parent 6aab27f commit 2d5f204

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

benchmarks/test_benchmark_nearest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import importlib.util
22
from itertools import product
3+
from typing import Optional
34

45
import pytest
56
import torch
@@ -38,7 +39,7 @@ def _assert_nearest_within_cuda(
3839
out_triton: torch.Tensor,
3940
x: torch.Tensor,
4041
y: torch.Tensor,
41-
tol: float | None = None,
42+
tol: Optional[float] = None,
4243
) -> None:
4344
if tol is None:
4445
tol = 5 * torch.finfo(x.dtype).eps

0 commit comments

Comments
 (0)