mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-08 07:33:53 +01:00
ratbagctl: simplify an expression to make mypy understand it
This commit is contained in:
@@ -1386,10 +1386,9 @@ class RatbagParserSwitch(RatbagParser):
|
||||
if switch is not None
|
||||
else []
|
||||
)
|
||||
if N_access is not None:
|
||||
self.N_access = RatbagParserNAccess(**N_access)
|
||||
else:
|
||||
self.N_access = None
|
||||
self.N_access = (
|
||||
RatbagParserNAccess(**N_access) if N_access is not None else None
|
||||
)
|
||||
|
||||
def repr_args(self) -> str:
|
||||
return """switch='{}', N_access='{}', {}""".format(
|
||||
|
||||
Reference in New Issue
Block a user