forked from platypush/platypush
[Chore] pylint
This commit is contained in:
parent
c8786b75de
commit
da93f1b3b0
2 changed files with 4 additions and 4 deletions
|
@ -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):
|
||||
|
|
|
@ -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,
|
||||
):
|
||||
|
|
Loading…
Reference in a new issue