refractoring
This commit is contained in:
+1
-11
@@ -19,16 +19,12 @@ from __future__ import annotations
|
|||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import contextlib
|
import contextlib
|
||||||
import dataclasses
|
|
||||||
import functools
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
|
||||||
import wave
|
import wave
|
||||||
import itertools
|
import itertools
|
||||||
from typing import cast, Any, AsyncGenerator, Coroutine, Dict, Optional, Tuple
|
from typing import cast, Any, AsyncGenerator, Coroutine, Dict, Optional, Tuple
|
||||||
|
from typing import List
|
||||||
|
|
||||||
import click
|
|
||||||
import pyee
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import lc3 # type: ignore # pylint: disable=E0401
|
import lc3 # type: ignore # pylint: disable=E0401
|
||||||
@@ -115,12 +111,6 @@ def run_async(async_command: Coroutine) -> None:
|
|||||||
color('!!! An error occurred while executing the command:', 'red'), message
|
color('!!! An error occurred while executing the command:', 'red'), message
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
|
||||||
# Constants
|
|
||||||
# -----------------------------------------------------------------------------
|
|
||||||
from typing import List
|
|
||||||
|
|
||||||
async def run_broadcast(
|
async def run_broadcast(
|
||||||
global_config : auracast_config.AuracastGlobalConfig,
|
global_config : auracast_config.AuracastGlobalConfig,
|
||||||
big_config: List[auracast_config.AuracastBigConfig]
|
big_config: List[auracast_config.AuracastBigConfig]
|
||||||
|
|||||||
Reference in New Issue
Block a user