File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -109,9 +109,16 @@ def compile(
109
109
view_data_batch_size : int = 10 ,
110
110
tip_aware_proposer : bool = True ,
111
111
fewshot_aware_proposer : bool = True ,
112
- requires_permission_to_run : bool = True , # deprecated
112
+ requires_permission_to_run : bool | None = None , # deprecated
113
113
provide_traceback : bool | None = None ,
114
114
) -> Any :
115
+ if requires_permission_to_run == False :
116
+ logger .warning (
117
+ "'requires_permission_to_run' is deprecated and will be removed in a future version."
118
+ )
119
+ elif requires_permission_to_run == True :
120
+ raise ValueError ("User confirmation is removed from MIPROv2. Please remove the 'requires_permission_to_run' argument." )
121
+
115
122
effective_max_errors = (
116
123
self .max_errors
117
124
if self .max_errors is not None
You can’t perform that action at this time.
0 commit comments