Skip to content

Commit c221b2f

Browse files
committed
Hotfix imports
1 parent 0b36065 commit c221b2f

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

arrayfire_wrapper/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,7 @@
6969
uint32,
7070
uint64,
7171
)
72+
73+
__all__ += ["lib"]
74+
75+
from . import lib

arrayfire_wrapper/defines.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,6 @@ class PointerSource(Enum):
6262
"""
6363
Source of the pointer.
6464
"""
65+
6566
device = 0 # gpu
6667
host = 1 # cpu

tests/test_dtypes.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,7 @@
22

33
import pytest
44

5-
from arrayfire_wrapper.dtypes import Dtype
6-
from arrayfire_wrapper.dtypes import bool as af_bool
7-
from arrayfire_wrapper.dtypes import (
8-
complex32,
9-
float32,
10-
float64,
11-
implicit_dtype,
12-
int32,
13-
int64,
14-
s16,
15-
str_to_dtype,
16-
uint16,
17-
)
5+
from arrayfire_wrapper.dtypes import Dtype, float32, int32, s16, str_to_dtype, uint16
186

197

208
def test_dtype_str_representation() -> None:

0 commit comments

Comments
 (0)