From da93f1b3b08de78db00f440e25838eaaf338d3d0 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 14 Jun 2023 01:44:36 +0200 Subject: [PATCH] [Chore] pylint --- platypush/backend/http/app/streaming/plugins/sound.py | 2 +- platypush/plugins/sound/__init__.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/platypush/backend/http/app/streaming/plugins/sound.py b/platypush/backend/http/app/streaming/plugins/sound.py index b1688f3d92..fb7a3e8cdc 100644 --- a/platypush/backend/http/app/streaming/plugins/sound.py +++ b/platypush/backend/http/app/streaming/plugins/sound.py @@ -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): diff --git a/platypush/plugins/sound/__init__.py b/platypush/plugins/sound/__init__.py index e3afe961ae..0979d35ee4 100644 --- a/platypush/plugins/sound/__init__.py +++ b/platypush/plugins/sound/__init__.py @@ -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, ):