fix: satisfy ruff line length

This commit is contained in:
3252a8
2026-06-01 11:11:15 +03:00
parent 939bc37995
commit 21079f78dc
12 changed files with 60 additions and 15 deletions
+5 -1
View File
@@ -131,7 +131,11 @@ class PackageSet(RootModel[Dict[str, List[TrafficPackage]]]):
@property
def non_stars_currencies(self) -> List[str]:
return [currency for currency, packages in self.root.items() if currency != "stars" and packages]
return [
currency
for currency, packages in self.root.items()
if currency != "stars" and packages
]
def has_any(self) -> bool:
return any(bool(packages) for packages in self.root.values())