From 4401ca7432fe1eb95121f3920e660f8b85aced5d Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Sun, 14 Jul 2024 20:13:14 -0400 Subject: [PATCH] fix: strip func in cli --- dargs/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dargs/cli.py b/dargs/cli.py index 045e87b..580a2d8 100644 --- a/dargs/cli.py +++ b/dargs/cli.py @@ -90,7 +90,7 @@ def check_cli( dict normalized data """ - module_name, attr_name = func.rsplit(".", 1) + module_name, attr_name = func.strip().rsplit(".", 1) try: mod = __import__(module_name, globals(), locals(), [attr_name]) except ImportError as e: