From 360d7355ec95f44111d9fc916dd33b5be5eaa3a7 Mon Sep 17 00:00:00 2001 From: BitterPanda63 Date: Wed, 22 Jan 2025 15:21:26 +0100 Subject: [PATCH] Fix SyntaxWarning by replacing "is" with "==" --- aikido_zen/api_discovery/merge_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aikido_zen/api_discovery/merge_types.py b/aikido_zen/api_discovery/merge_types.py index fad537f6..db35ce6c 100644 --- a/aikido_zen/api_discovery/merge_types.py +++ b/aikido_zen/api_discovery/merge_types.py @@ -11,7 +11,7 @@ def merge_types(first, second): first_primitive = only_contains_primitive_types(first["type"]) second_primitive = only_contains_primitive_types(second["type"]) if not first_primitive or not second_primitive: - if first["type"] is "null": # Prefer non-null type + if first["type"] == "null": # Prefer non-null type return second return first first["type"] = merge_type_arrays(first["type"], second["type"])