mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-14 05:14:19 +00:00
test fixes for cli...
This commit is contained in:
@@ -316,7 +316,7 @@ class ArgparseTranslator:
|
||||
if origin is list:
|
||||
return "+"
|
||||
|
||||
if origin is Union and any(
|
||||
if origin in (Union, types.UnionType) and any(
|
||||
get_origin(arg) is list for arg in get_args(param_type)
|
||||
):
|
||||
return "+"
|
||||
|
||||
@@ -497,7 +497,7 @@ def test_list_nargs():
|
||||
actions = {action.dest: action for action in parser._actions}
|
||||
|
||||
assert actions["symbols"].nargs == "+"
|
||||
assert "values" in actions
|
||||
assert actions["values"].nargs == "+"
|
||||
|
||||
|
||||
def test_custom_type_flattening():
|
||||
|
||||
Reference in New Issue
Block a user