mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2026-04-18 12:33:34 +00:00
re-run through ruff formatter
This commit is contained in:
@@ -31,8 +31,8 @@ class Adapter(IRemote):
|
||||
return self._remote.get_num_devices(direction)
|
||||
|
||||
vals = self._remote.get_device_description(index, direction)
|
||||
types = {1: "mme", 3: "wdm", 4: "ks", 5: "asio"}
|
||||
return {"name": vals[0], "type": types[vals[1]], "id": vals[2]}
|
||||
types = {1: 'mme', 3: 'wdm', 4: 'ks', 5: 'asio'}
|
||||
return {'name': vals[0], 'type': types[vals[1]], 'id': vals[2]}
|
||||
|
||||
|
||||
class Device(Adapter):
|
||||
@@ -47,26 +47,26 @@ class Device(Adapter):
|
||||
"""
|
||||
|
||||
def num_ins(cls) -> int:
|
||||
return cls.getter(direction="in")
|
||||
return cls.getter(direction='in')
|
||||
|
||||
def num_outs(cls) -> int:
|
||||
return cls.getter(direction="out")
|
||||
return cls.getter(direction='out')
|
||||
|
||||
DEVICE_cls = type(
|
||||
f"Device{remote.kind}",
|
||||
f'Device{remote.kind}',
|
||||
(cls,),
|
||||
{
|
||||
"ins": property(num_ins),
|
||||
"outs": property(num_outs),
|
||||
'ins': property(num_ins),
|
||||
'outs': property(num_outs),
|
||||
},
|
||||
)
|
||||
return DEVICE_cls(remote)
|
||||
|
||||
def __str__(self):
|
||||
return f"{type(self).__name__}"
|
||||
return f'{type(self).__name__}'
|
||||
|
||||
def input(self, index: int) -> dict:
|
||||
return self.getter(index=index, direction="in")
|
||||
return self.getter(index=index, direction='in')
|
||||
|
||||
def output(self, index: int) -> dict:
|
||||
return self.getter(index=index, direction="out")
|
||||
return self.getter(index=index, direction='out')
|
||||
|
||||
Reference in New Issue
Block a user