Skip to content

Commit

Permalink
Fix windows typing
Browse files Browse the repository at this point in the history
  • Loading branch information
WillB97 committed Oct 1, 2023
1 parent f6a88fe commit 7107fe6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion april_vision/detect_cameras.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ def windows_discovery() -> List[CameraIdentifier]:
"""
import asyncio

import winsdk.windows.devices.enumeration as windows_devices # type: ignore
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

async def get_camera_info(): # type: ignore
device_class = windows_devices.DeviceClass.VIDEO_CAPTURE
Expand Down

0 comments on commit 7107fe6

Please sign in to comment.