From 847a244160a6437c1f48f2b3357d53a5713f9b3b Mon Sep 17 00:00:00 2001 From: Brad Keryan Date: Thu, 14 Dec 2023 11:22:15 -0600 Subject: [PATCH] codegen: Use python_codegen_method value, not its presence (#462) Signed-off-by: Brad Keryan --- src/codegen/utilities/function_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen/utilities/function_helpers.py b/src/codegen/utilities/function_helpers.py index a54c7422..d3966955 100644 --- a/src/codegen/utilities/function_helpers.py +++ b/src/codegen/utilities/function_helpers.py @@ -40,7 +40,7 @@ def get_functions(metadata, class_name=""): all_functions = deepcopy(metadata["functions"]) functions_metadata = [] for function_name, function_data in all_functions.items(): - if "python_codegen_method" in function_data or function_name in EXCLUDED_FUNCTIONS: + if function_data.get("python_codegen_method") or function_name in EXCLUDED_FUNCTIONS: continue if ( "python_class_name" in all_functions[function_name]