Skip to content

Commit 5f519cc

Browse files
committed
Format code
1 parent b3577a1 commit 5f519cc

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

src/asyncapi_python/contrib/wire/amqp/resolver.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,11 @@ def resolve_routing_key_binding(
314314

315315
# Extract exchange arguments
316316
arguments: dict[str, Any] = {}
317-
if exchange_config and hasattr(exchange_config, "arguments") and exchange_config.arguments:
317+
if (
318+
exchange_config
319+
and hasattr(exchange_config, "arguments")
320+
and exchange_config.arguments
321+
):
318322
arguments = exchange_config.arguments
319323

320324
# Determine routing key - this is where wildcards are allowed
@@ -383,7 +387,11 @@ def resolve_exchange_binding(
383387

384388
# Extract exchange arguments
385389
arguments: dict[str, Any] = {}
386-
if exchange_config and hasattr(exchange_config, "arguments") and exchange_config.arguments:
390+
if (
391+
exchange_config
392+
and hasattr(exchange_config, "arguments")
393+
and exchange_config.arguments
394+
):
387395
arguments = exchange_config.arguments
388396

389397
# Extract binding arguments for headers exchange from dataclass

0 commit comments

Comments
 (0)