From 1ef1cf392ae9b08ba04f27220d9539a782ffb001 Mon Sep 17 00:00:00 2001 From: Alex Skyrta Date: Fri, 1 Dec 2023 17:35:14 +0200 Subject: [PATCH] fixing linter --- docs/modules/ROOT/examples/merging/tutorial001.py | 3 ++- docs/modules/ROOT/examples/merging/tutorial002.py | 3 ++- tests/unit/test_docs/test_merging.py | 11 ++++++++--- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/docs/modules/ROOT/examples/merging/tutorial001.py b/docs/modules/ROOT/examples/merging/tutorial001.py index a23de640..e9aa3e27 100644 --- a/docs/modules/ROOT/examples/merging/tutorial001.py +++ b/docs/modules/ROOT/examples/merging/tutorial001.py @@ -1,4 +1,5 @@ -from corva import Api, StreamTimeEvent, stream, Cache +from corva import Api # <.> +from corva import Cache, StreamTimeEvent, stream # imagine we actually have 3 incoming events with 3 records each diff --git a/docs/modules/ROOT/examples/merging/tutorial002.py b/docs/modules/ROOT/examples/merging/tutorial002.py index ad9c20f8..67510900 100644 --- a/docs/modules/ROOT/examples/merging/tutorial002.py +++ b/docs/modules/ROOT/examples/merging/tutorial002.py @@ -1,4 +1,5 @@ -from corva import Api, ScheduledNaturalTimeEvent, scheduled, Cache +from corva import Api # <.> +from corva import Cache, ScheduledNaturalTimeEvent, scheduled @scheduled(merge_events=True) diff --git a/tests/unit/test_docs/test_merging.py b/tests/unit/test_docs/test_merging.py index ea7a378c..91166bd5 100644 --- a/tests/unit/test_docs/test_merging.py +++ b/tests/unit/test_docs/test_merging.py @@ -1,13 +1,18 @@ -from typing import List, Union, Dict +from typing import Dict, List, Union import pytest -from corva import StreamTimeEvent, ScheduledDataTimeEvent +from corva import ScheduledDataTimeEvent, StreamTimeEvent from corva.configuration import SETTINGS from corva.models.scheduled.raw import RawScheduledDataTimeEvent from corva.models.scheduled.scheduler_type import SchedulerType from corva.models.stream.log_type import LogType -from corva.models.stream.raw import RawStreamTimeEvent, RawTimeRecord, RawMetadata, RawAppMetadata +from corva.models.stream.raw import ( + RawAppMetadata, + RawMetadata, + RawStreamTimeEvent, + RawTimeRecord, +) from docs.modules.ROOT.examples.merging import tutorial001, tutorial002