[Chore] pylint

This commit is contained in:
Fabio Manganiello 2023-06-14 01:44:36 +02:00
parent c8786b75de
commit da93f1b3b0
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774
2 changed files with 4 additions and 4 deletions

View file

@ -46,7 +46,7 @@ class SoundRoute(StreamingRoute):
@override
@classmethod
def _get_redis_queue(cls, device: Optional[str] = None, *_, **__) -> str:
def _get_redis_queue(cls, *_, device: Optional[str] = None, **__) -> str:
return '/'.join([cls._redis_queue_prefix, *([device] if device else [])])
def _get_args(self, **kwargs):

View file

@ -451,7 +451,7 @@ class SoundPlugin(Plugin):
return self.record(*args, **kwargs)
@action
def record(
def record( # pylint: disable=too-many-statements
self,
device: Optional[str] = None,
output_device: Optional[str] = None,
@ -459,12 +459,12 @@ class SoundPlugin(Plugin):
outfile: Optional[str] = None,
duration: Optional[float] = None,
sample_rate: Optional[int] = None,
dtype: str = 'float32',
dtype: str = 'int16',
blocksize: Optional[int] = None,
latency: Union[float, str] = 'high',
channels: int = 1,
redis_queue: Optional[str] = None,
format: str = 'wav',
format: str = 'wav', # pylint: disable=redefined-builtin
stream: bool = True,
play_audio: bool = False,
):