File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -91,11 +91,14 @@ def on_diagnostic(diag):
91
91
if link_options .on_diagnostic is None :
92
92
link_options .on_diagnostic = on_diagnostic
93
93
94
- for _ , value in link_options .arguments .items ():
94
+ for key , value in link_options .arguments .items ():
95
95
if not isinstance (value , float ):
96
- raise exceptions .QSSArgumentInputTypeError (
97
- f"Only double arguments are supported, not { type (value )} "
98
- )
96
+ if isinstance (value , int ):
97
+ link_options .arguments [key ] = float (value )
98
+ else :
99
+ raise exceptions .QSSArgumentInputTypeError (
100
+ f"Only int & double arguments are supported, not { type (value )} "
101
+ )
99
102
100
103
if link_options .input_file is not None and link_options .input_bytes is not None :
101
104
raise ValueError ("only one of input_file or input_bytes should have a value" )
You can’t perform that action at this time.
0 commit comments