xair-api 2.3.2__py3-none-any.whl → 2.4.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
xair_api/rtn.py CHANGED
@@ -18,10 +18,10 @@ class IRtn(abc.ABC):
18
18
  self.logger = logger.getChild(self.__class__.__name__)
19
19
 
20
20
  def getter(self, param: str):
21
- return self._remote.query(f"{self.address}/{param}")
21
+ return self._remote.query(f'{self.address}/{param}')
22
22
 
23
23
  def setter(self, param: str, val: int):
24
- self._remote.send(f"{self.address}/{param}", val)
24
+ self._remote.send(f'{self.address}/{param}', val)
25
25
 
26
26
  @abc.abstractmethod
27
27
  def address(self):
@@ -41,12 +41,12 @@ class AuxRtn(IRtn):
41
41
  Returns an AuxRtn class of a kind.
42
42
  """
43
43
  AUXRTN_cls = type(
44
- f"AuxRtn{remote.kind}",
44
+ f'AuxRtn{remote.kind}',
45
45
  (cls,),
46
46
  {
47
47
  **{
48
48
  _cls.__name__.lower(): type(
49
- f"{_cls.__name__}{remote.kind}", (_cls, cls), {}
49
+ f'{_cls.__name__}{remote.kind}', (_cls, cls), {}
50
50
  )(remote, index)
51
51
  for _cls in (
52
52
  Config,
@@ -56,18 +56,18 @@ class AuxRtn(IRtn):
56
56
  Group,
57
57
  )
58
58
  },
59
- "send": tuple(
59
+ 'send': tuple(
60
60
  Send.make(cls, i, remote)
61
61
  for i in range(remote.kind.num_bus + remote.kind.num_fx)
62
62
  ),
63
- "mute": mute_prop(),
63
+ 'mute': mute_prop(),
64
64
  },
65
65
  )
66
66
  return AUXRTN_cls(remote, index)
67
67
 
68
68
  @property
69
69
  def address(self):
70
- return "/rtn/aux"
70
+ return '/rtn/aux'
71
71
 
72
72
 
73
73
  class FxRtn(IRtn):
@@ -83,12 +83,12 @@ class FxRtn(IRtn):
83
83
  Returns an FxRtn class of a kind.
84
84
  """
85
85
  FXRTN_cls = type(
86
- f"FxRtn{remote.kind}",
86
+ f'FxRtn{remote.kind}',
87
87
  (cls,),
88
88
  {
89
89
  **{
90
90
  _cls.__name__.lower(): type(
91
- f"{_cls.__name__}{remote.kind}", (_cls, cls), {}
91
+ f'{_cls.__name__}{remote.kind}', (_cls, cls), {}
92
92
  )(remote, index)
93
93
  for _cls in (
94
94
  Config,
@@ -98,15 +98,15 @@ class FxRtn(IRtn):
98
98
  Group,
99
99
  )
100
100
  },
101
- "send": tuple(
101
+ 'send': tuple(
102
102
  Send.make(cls, i, remote, index)
103
103
  for i in range(remote.kind.num_bus + remote.kind.num_fx)
104
104
  ),
105
- "mute": mute_prop(),
105
+ 'mute': mute_prop(),
106
106
  },
107
107
  )
108
108
  return FXRTN_cls(remote, index)
109
109
 
110
110
  @property
111
111
  def address(self):
112
- return f"/rtn/{self.index}"
112
+ return f'/rtn/{self.index}'