Skip to content

Commit ccd9bc6

Browse files
committed
TYP: it's also a bad idea to import TypeGuard from typing on python<3.10
1 parent ec72825 commit ccd9bc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

array_api_compat/common/_helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import math
1313
import sys
1414
import warnings
15-
from typing import TYPE_CHECKING, Any, Literal, SupportsIndex, TypeGuard, cast, overload
15+
from typing import TYPE_CHECKING, Any, Literal, SupportsIndex, cast, overload
1616

1717
from ._typing import Array, Device, HasShape, Namespace, SupportsArrayNamespace
1818

@@ -26,7 +26,7 @@
2626
import numpy.typing as npt
2727
import sparse # pyright: ignore[reportMissingTypeStubs]
2828
import torch
29-
from typing_extensions import TypeAlias, TypeIs, TypeVar
29+
from typing_extensions import TypeAlias, TypeGuard, TypeIs, TypeVar
3030

3131
_SizeT = TypeVar("_SizeT", bound=int | None)
3232

0 commit comments

Comments
 (0)