mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 14:13:23 +00:00
update to _get_args to convert arguments from AstVector to a python list
Signed-off-by: Miguel Angelo Da Terra Neves <t-mineve@microsoft.com>
This commit is contained in:
parent
e0e2397566
commit
6c7a82edce
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ def _get_args(args):
|
||||||
try:
|
try:
|
||||||
if len(args) == 1 and (isinstance(args[0], tuple) or isinstance(args[0], list)):
|
if len(args) == 1 and (isinstance(args[0], tuple) or isinstance(args[0], list)):
|
||||||
return args[0]
|
return args[0]
|
||||||
elif len(args) == 1 and isinstance(args[0], set):
|
elif len(args) == 1 and (isinstance(args[0], set) or isinstance(args[0], AstVector)):
|
||||||
return [arg for arg in args[0]]
|
return [arg for arg in args[0]]
|
||||||
else:
|
else:
|
||||||
return args
|
return args
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue