re-run through ruff formatter

This commit is contained in:
2025-01-15 10:54:52 +00:00
parent 5a988e8d37
commit 53ad8fdff5
23 changed files with 460 additions and 460 deletions

View File

@@ -18,10 +18,10 @@ class ILR(abc.ABC):
self.logger = logger.getChild(self.__class__.__name__)
def getter(self, param: str):
return self._remote.query(f"{self.address}/{param}")
return self._remote.query(f'{self.address}/{param}')
def setter(self, param: str, val: int):
self._remote.send(f"{self.address}/{param}", val)
self._remote.send(f'{self.address}/{param}', val)
@abc.abstractmethod
def address(self):
@@ -41,12 +41,12 @@ class LR(ILR):
Returns an LR class of a kind.
"""
LR_cls = type(
f"LR{remote.kind}",
f'LR{remote.kind}',
(cls,),
{
**{
_cls.__name__.lower(): type(
f"{_cls.__name__}{remote.kind}", (_cls, cls), {}
f'{_cls.__name__}{remote.kind}', (_cls, cls), {}
)(remote, index)
for _cls in (
Config,
@@ -57,11 +57,11 @@ class LR(ILR):
Mix,
)
},
"mute": mute_prop(),
'mute': mute_prop(),
},
)
return LR_cls(remote, index)
@property
def address(self) -> str:
return "/lr"
return '/lr'