Skip to content

Commit 551f997

Browse files
authored
Use relative imports to simplify vendoring (#37)
Signed-off-by: Sebastian Berg <[email protected]>
1 parent 5997131 commit 551f997

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/spatch/backend_system.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,13 @@
1313
from types import MethodType, SimpleNamespace
1414
from typing import Any
1515

16-
from spatch import from_identifier, get_identifier
17-
from spatch.utils import EMPTY_TYPE_IDENTIFIER, TypeIdentifier, valid_backend_name
16+
from .utils import (
17+
EMPTY_TYPE_IDENTIFIER,
18+
TypeIdentifier,
19+
from_identifier,
20+
get_identifier,
21+
valid_backend_name,
22+
)
1823

1924
try:
2025
import tomllib

src/spatch/testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from spatch.utils import get_identifier
1+
from .utils import get_identifier
22

33

44
class _FuncGetter:

0 commit comments

Comments
 (0)