From 6393c6e4437fda2705bfdd188463760e75086566 Mon Sep 17 00:00:00 2001 From: zrezke Date: Mon, 18 Mar 2024 14:09:27 +0100 Subject: [PATCH] Fix pylints --- rerun_py/depthai_viewer/_backend/device.py | 5 +++-- rerun_py/depthai_viewer/_backend/packet_handler.py | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/rerun_py/depthai_viewer/_backend/device.py b/rerun_py/depthai_viewer/_backend/device.py index 4456b9b5183e..09573d95e718 100644 --- a/rerun_py/depthai_viewer/_backend/device.py +++ b/rerun_py/depthai_viewer/_backend/device.py @@ -6,13 +6,15 @@ from typing import Dict, List, Optional, Tuple import depthai as dai -import depthai_viewer as viewer import numpy as np from depthai_sdk import OakCamera from depthai_sdk.classes.packet_handlers import ComponentOutput from depthai_sdk.components import CameraComponent, NNComponent, StereoComponent from depthai_sdk.components.camera_helper import getClosestIspScale from depthai_sdk.components.tof_component import Component +from numpy.typing import NDArray + +import depthai_viewer as viewer from depthai_viewer._backend.device_configuration import ( ALL_NEURAL_NETWORKS, CameraConfiguration, @@ -43,7 +45,6 @@ ) from depthai_viewer._backend.store import Store from depthai_viewer.install_requirements import model_dir -from numpy.typing import NDArray class XlinkStatistics: diff --git a/rerun_py/depthai_viewer/_backend/packet_handler.py b/rerun_py/depthai_viewer/_backend/packet_handler.py index 80b526b88dc2..aeec22f4c318 100644 --- a/rerun_py/depthai_viewer/_backend/packet_handler.py +++ b/rerun_py/depthai_viewer/_backend/packet_handler.py @@ -2,7 +2,6 @@ import cv2 import depthai as dai -import depthai_viewer as viewer import numpy as np from ahrs.filters import Mahony from depthai_sdk.classes.packets import ( # PointcloudPacket, @@ -23,11 +22,13 @@ StereoComponent, ) from depthai_sdk.components.tof_component import ToFComponent +from numpy.typing import NDArray +from pydantic import BaseModel + +import depthai_viewer as viewer from depthai_viewer._backend.store import Store from depthai_viewer._backend.topic import Topic from depthai_viewer.components.rect2d import RectFormat -from numpy.typing import NDArray -from pydantic import BaseModel class PacketHandlerContext(BaseModel): # type: ignore[misc]