Only Kanta exported at root, others available from submodules.
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
import pytest
|
||||
|
||||
from kanta import JsonSerializer, MsgPackSerializer
|
||||
from kanta.serialization import JsonSerializer, MsgPackSerializer
|
||||
|
||||
|
||||
@pytest.fixture(
|
||||
|
||||
+2
-1
@@ -6,7 +6,8 @@ from uuid import UUID
|
||||
|
||||
import msgspec
|
||||
|
||||
from kanta import ChangeRecord, Kanta
|
||||
from kanta.kanta import Kanta
|
||||
from kanta.structs import ChangeRecord
|
||||
|
||||
|
||||
class User(msgspec.Struct):
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
from kanta import compute_diff
|
||||
from kanta.diff import compute_diff
|
||||
|
||||
|
||||
def test_no_diff():
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from kanta import format_diff
|
||||
from kanta.logging import format_diff
|
||||
|
||||
|
||||
def test_add():
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import logging
|
||||
|
||||
from kanta import configure_logging, log_change
|
||||
from kanta.logging import configure_logging, log_change
|
||||
from kanta.logging import logger
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ from datetime import UTC, datetime
|
||||
|
||||
import pytest
|
||||
|
||||
from kanta import ChangeRecord
|
||||
from kanta.structs import ChangeRecord
|
||||
|
||||
from .support import Data, make_kanta, seed_single_change
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
from datetime import UTC, datetime
|
||||
|
||||
from kanta import ChangeRecord, Snapshot, replay
|
||||
from kanta.diff import replay_jsonl as replay
|
||||
from kanta.structs import ChangeRecord, Snapshot
|
||||
from kanta.serialization.framing import LineFramer
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user