diff --git a/examples/custom_types.py b/examples/custom_types.py index 648a879..0b6ec4d 100644 --- a/examples/custom_types.py +++ b/examples/custom_types.py @@ -6,7 +6,6 @@ from dataclasses import dataclass from asphalt.core import ContainerComponent, Context, run_application - from asphalt.serialization.api import CustomizableSerializer diff --git a/examples/simple.py b/examples/simple.py index a80f86d..f1ec092 100644 --- a/examples/simple.py +++ b/examples/simple.py @@ -3,7 +3,6 @@ import asyncio from asphalt.core import ContainerComponent, Context, run_application - from asphalt.serialization.api import Serializer diff --git a/src/asphalt/serialization/serializers/cbor.py b/src/asphalt/serialization/serializers/cbor.py index e79e6c9..459bb36 100644 --- a/src/asphalt/serialization/serializers/cbor.py +++ b/src/asphalt/serialization/serializers/cbor.py @@ -3,6 +3,7 @@ from typing import Any import cbor2 + from asphalt.core import qualified_name, resolve_reference from ..api import CustomizableSerializer diff --git a/src/asphalt/serialization/serializers/msgpack.py b/src/asphalt/serialization/serializers/msgpack.py index 68110ea..0e85fd0 100644 --- a/src/asphalt/serialization/serializers/msgpack.py +++ b/src/asphalt/serialization/serializers/msgpack.py @@ -2,9 +2,10 @@ from typing import Any -from asphalt.core import resolve_reference from msgpack import ExtType, packb, unpackb +from asphalt.core import resolve_reference + from ..api import CustomizableSerializer from ..object_codec import DefaultCustomTypeCodec diff --git a/tests/test_component.py b/tests/test_component.py index a72f01f..b5726fc 100644 --- a/tests/test_component.py +++ b/tests/test_component.py @@ -1,6 +1,6 @@ import pytest -from asphalt.core.context import Context +from asphalt.core.context import Context from asphalt.serialization.api import CustomizableSerializer, Serializer from asphalt.serialization.component import SerializationComponent from asphalt.serialization.serializers.json import JSONSerializer