Skip to content

Commit 0754b86

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

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
@@ -11,7 +11,7 @@
1111
import math
1212
import sys
1313
import warnings
14-
from typing import TYPE_CHECKING, Any, Literal, SupportsIndex, TypeGuard, cast, overload
14+
from typing import TYPE_CHECKING, Any, Literal, SupportsIndex, cast, overload
1515

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

@@ -25,7 +25,7 @@
2525
import numpy.typing as npt
2626
import sparse # pyright: ignore[reportMissingTypeStubs]
2727
import torch
28-
from typing_extensions import TypeAlias, TypeIs, TypeVar
28+
from typing_extensions import TypeAlias, TypeGuard, TypeIs, TypeVar
2929

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

0 commit comments

Comments
 (0)