Skip to content

Commit 46c2c11

Browse files
committed
fixup
1 parent c519fbe commit 46c2c11

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/v3/test_buffer.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import annotations
2-
3-
import types
2+
from typing import TYPE_CHECKING
43

54
import numpy as np
65
import pytest
@@ -29,6 +28,11 @@
2928
cp = None
3029

3130

31+
if TYPE_CHECKING:
32+
import types
33+
34+
35+
3236
def test_nd_array_like(xp: types.ModuleType) -> None:
3337
ary = xp.arange(10)
3438
assert isinstance(ary, ArrayLike)

0 commit comments

Comments
 (0)