Skip to content

Commit

Permalink
mypy, pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed May 24, 2024
1 parent 1bb8d38 commit e5e2bc7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions rosys/testing/fixtures.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import asyncio
import multiprocessing
from typing import Generator
from typing import AsyncGenerator

import pytest
from nicegui import core
Expand All @@ -18,7 +18,7 @@


@pytest.fixture
async def integration() -> Generator:
async def integration() -> AsyncGenerator:
core.loop = asyncio.get_event_loop()
rosys.reset_before_test()
await rosys.startup()
Expand Down
2 changes: 1 addition & 1 deletion rosys/vision/rtsp_camera/rtsp_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from io import BytesIO
from typing import AsyncGenerator, Optional

from rosys import background_tasks
from nicegui import background_tasks

from .jovision_rtsp_interface import JovisionInterface
from .vendors import VendorType, mac_to_url, mac_to_vendor
Expand Down
2 changes: 1 addition & 1 deletion rosys/vision/simulated_camera/simulated_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def is_connected(self) -> bool:
async def connect(self) -> None:
if not self.is_connected:
self.device = SimulatedDevice(id=self.id, size=self.resolution)
self._apply_all_parameters()
await self._apply_all_parameters()

async def disconnect(self) -> None:
self.device = None
Expand Down
2 changes: 1 addition & 1 deletion rosys/vision/usb_camera/usb_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def connect(self) -> None:
self.device = device
logging.info('Connecting camera %s: succeeded', self.id)

self._apply_all_parameters()
await self._apply_all_parameters()

async def disconnect(self) -> None:
if not self.is_connected:
Expand Down

0 comments on commit e5e2bc7

Please sign in to comment.