From 9317907d30dbe7eaf06dac1a033d31ddc6d04d8d Mon Sep 17 00:00:00 2001 From: Tim-Oliver Husser Date: Fri, 8 Dec 2023 19:52:59 +0100 Subject: [PATCH] fixed imports --- pyobs/robotic/scripts/parallel.py | 6 ++++-- pyobs/robotic/scripts/sequential.py | 7 ++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/pyobs/robotic/scripts/parallel.py b/pyobs/robotic/scripts/parallel.py index c97c1c88..d63c4311 100644 --- a/pyobs/robotic/scripts/parallel.py +++ b/pyobs/robotic/scripts/parallel.py @@ -1,8 +1,10 @@ +from __future__ import annotations import asyncio import logging -from typing import Any, Dict, Optional, List +from typing import Any, Dict, Optional, List, TYPE_CHECKING -from pyobs.robotic import TaskRunner, TaskSchedule, TaskArchive +if TYPE_CHECKING: + from pyobs.robotic import TaskRunner, TaskSchedule, TaskArchive from pyobs.robotic.scripts import Script diff --git a/pyobs/robotic/scripts/sequential.py b/pyobs/robotic/scripts/sequential.py index c2fb3673..ca77c65d 100644 --- a/pyobs/robotic/scripts/sequential.py +++ b/pyobs/robotic/scripts/sequential.py @@ -1,8 +1,9 @@ +from __future__ import annotations import logging -from typing import Any, Dict, Optional, List +from typing import Any, Dict, Optional, List, TYPE_CHECKING -from pyobs.object import get_object -from pyobs.robotic import TaskRunner, TaskSchedule, TaskArchive +if TYPE_CHECKING: + from pyobs.robotic import TaskRunner, TaskSchedule, TaskArchive from pyobs.robotic.scripts import Script log = logging.getLogger(__name__)