We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1423b89 commit 61b9aaaCopy full SHA for 61b9aaa
radicli/util.py
@@ -296,11 +296,9 @@ def get_arg(
296
skip_resolve: bool = False,
297
) -> ArgparseArg:
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
+ # Windows may pass param_types as str
+ param_type = BASE_TYPES_MAP.get(param_type, None)
304
arg = ArgparseArg(
305
id=param,
306
arg=orig_arg,
0 commit comments