Skip to content

Commit 1423b89

Browse files
committed
fix type error
1 parent 19787ae commit 1423b89

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

radicli/util.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,9 @@ def get_arg(
298298
"""Generate an argument to add to argparse and interpret types if possible."""
299299
if isinstance(param_type, str) and param_type in BASE_TYPES_MAP:
300300
param_type = BASE_TYPES_MAP[param_type]
301+
# Ensure param_type is not a string before passing to ArgparseArg
302+
if isinstance(param_type, str):
303+
param_type = None
301304
arg = ArgparseArg(
302305
id=param,
303306
arg=orig_arg,

0 commit comments

Comments
 (0)