diff --git a/april_vision/detect_cameras.py b/april_vision/detect_cameras.py index b5aa8dd..e40eae9 100644 --- a/april_vision/detect_cameras.py +++ b/april_vision/detect_cameras.py @@ -212,9 +212,9 @@ def windows_discovery() -> List[CameraIdentifier]: """ import asyncio - assert sys.platform != 'win32', "This method is only for Windows" + assert sys.platform == 'win32', "This method is only for Windows" - import winsdk.windows.devices.enumeration as windows_devices # type: ignore[import, unused-ignore] # noqa: E501 + import winsdk.windows.devices.enumeration as windows_devices # type: ignore[import-not-found,unused-ignore] async def get_camera_info(): # type: ignore device_class = windows_devices.DeviceClass.VIDEO_CAPTURE diff --git a/pyproject.toml b/pyproject.toml index d9b3187..151abba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,7 @@ dependencies = [ dev = [ "poethepoet >=0.0.1,<1", "ruff >=0.3.0,<0.4", - "mypy", + "mypy==1.9.0", "build", "types-Pillow", "types-tabulate",