From 55affd35b91d140ca57b381ab70ee3a3b99e58e8 Mon Sep 17 00:00:00 2001 From: harshadkhetpal Date: Fri, 20 Mar 2026 00:08:34 +0530 Subject: [PATCH] fix: use `is None` instead of `== None` (PEP 8 E711) --- sagemaker-core/src/sagemaker/core/tools/templates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sagemaker-core/src/sagemaker/core/tools/templates.py b/sagemaker-core/src/sagemaker/core/tools/templates.py index 674bd9a956..3a1cc326d1 100644 --- a/sagemaker-core/src/sagemaker/core/tools/templates.py +++ b/sagemaker-core/src/sagemaker/core/tools/templates.py @@ -644,7 +644,7 @@ def populate_chained_attributes(resource_name: str, operation_input_args: Union[ if value == Unassigned() : unassigned_args.append(arg) - elif value == None or not value: + elif value is None or not value: continue elif ( arg_snake.endswith("name")