Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 2, 2023
1 parent 57a1e66 commit cfad84c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/capture_method/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 [
Expand Down

0 comments on commit cfad84c

Please sign in to comment.