Merge pull request #1876 from YunoHost/actions/black

Format Python code with Black
This commit is contained in:
Alexandre Aubin 2024-06-23 01:20:11 +02:00 committed by GitHub
commit 2e05b0894b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -162,17 +162,17 @@ class AppResource:
and manager.wanted
and manager.wanted.get("integration", {}).get("helpers_version")
):
self.helpers_version = float(manager.wanted.get("integration", {}).get(
"helpers_version"
))
self.helpers_version = float(
manager.wanted.get("integration", {}).get("helpers_version")
)
elif (
manager
and manager.current
and manager.current.get("integration", {}).get("helpers_version")
):
self.helpers_version = float(manager.current.get("integration", {}).get(
"helpers_version"
))
self.helpers_version = float(
manager.current.get("integration", {}).get("helpers_version")
)
elif manager and manager.wanted and manager.wanted.get("packaging_format"):
self.helpers_version = float(manager.wanted.get("packaging_format"))
elif manager and manager.current and manager.current.get("packaging_format"):