From da45347de52554d1ec9cb3246d28b96129e1a0e6 Mon Sep 17 00:00:00 2001 From: Benedikt Johannes Date: Sun, 22 Feb 2026 14:47:47 +0100 Subject: [PATCH] Use {} for better performance in dict() Signed-off-by: Benedikt Johannes --- monai/apps/auto3dseg/auto_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monai/apps/auto3dseg/auto_runner.py b/monai/apps/auto3dseg/auto_runner.py index d06effcd1a..f854265fc6 100644 --- a/monai/apps/auto3dseg/auto_runner.py +++ b/monai/apps/auto3dseg/auto_runner.py @@ -229,7 +229,7 @@ def __init__( input = os.path.join(os.path.abspath(work_dir), "input.yaml") logger.info(f"Input config is not provided, using the default {input}") - self.data_src_cfg = dict() + self.data_src_cfg = {} if isinstance(input, dict): self.data_src_cfg = input elif isinstance(input, str) and os.path.isfile(input):