From f13a26777420360c2d7a192960e71904cf998b59 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 21:57:26 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- examples/custom_types.py | 1 - examples/simple.py | 1 - src/asphalt/serialization/serializers/cbor.py | 1 + src/asphalt/serialization/serializers/msgpack.py | 3 ++- tests/test_component.py | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) 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