We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19787ae commit 1423b89Copy full SHA for 1423b89
radicli/util.py
@@ -298,6 +298,9 @@ def get_arg(
298
"""Generate an argument to add to argparse and interpret types if possible."""
299
if isinstance(param_type, str) and param_type in BASE_TYPES_MAP:
300
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
304
arg = ArgparseArg(
305
id=param,
306
arg=orig_arg,
0 commit comments