From d187a052dc7736a959c0ef67d2c1e915ba54db02 Mon Sep 17 00:00:00 2001 From: Jason Barnett Date: Wed, 10 Jul 2024 15:11:09 -0600 Subject: [PATCH] fix long ass line --- kombu/transport/azureservicebus.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/kombu/transport/azureservicebus.py b/kombu/transport/azureservicebus.py index ad2324e16..62216a55d 100644 --- a/kombu/transport/azureservicebus.py +++ b/kombu/transport/azureservicebus.py @@ -141,8 +141,13 @@ def _try_parse_connection_string(self) -> None: self._namespace, self._credential = Transport.parse_uri( self.conninfo.hostname) - if (DefaultAzureCredential is not None and isinstance(self._credential, DefaultAzureCredential)) or \ - (ManagedIdentityCredential is not None and isinstance(self._credential, ManagedIdentityCredential)): + if ( + DefaultAzureCredential is not None + and isinstance(self._credential, DefaultAzureCredential) + ) or ( + ManagedIdentityCredential is not None + and isinstance(self._credential, ManagedIdentityCredential) + ): return None if ":" in self._credential: