From cfad84ced0781afb214b11210a6ccb6cea2ab6cc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Oct 2023 20:39:48 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/capture_method/__init__.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/capture_method/__init__.py b/src/capture_method/__init__.py index 5d5cfb92..0435cddd 100644 --- a/src/capture_method/__init__.py +++ b/src/capture_method/__init__.py @@ -4,6 +4,7 @@ from collections import OrderedDict from dataclasses import dataclass from enum import Enum, EnumMeta, auto, unique +from itertools import starmap from typing import TYPE_CHECKING, NoReturn, TypedDict, cast from _ctypes import COMError @@ -203,10 +204,7 @@ async def get_camera_info(index: int, device_name: str): # Note: Return type required https://github.com/python/typeshed/issues/2652 future = asyncio.gather( - *[ - get_camera_info(index, name) for index, name - in enumerate(named_video_inputs) - ], + *list(starmap(get_camera_info, enumerate(named_video_inputs))), ) return [