fix: remove unused imports in data science scenario module (#1136)

This commit is contained in:
Xu Yang
2025-07-31 17:05:14 +08:00
committed by GitHub
parent 6a4998154d
commit fd6cd3950c
@@ -128,15 +128,7 @@ class DataScienceScen(Scenario):
)
def recommend_debug_timeout(self):
return (
DS_RD_SETTING.debug_recommend_timeout
* min(
DS_RD_SETTING.coder_longer_timeout_multiplier_upper,
self.timeout_increase_count * DS_RD_SETTING.timeout_increase_stage + 1,
)
if self.longer_time_limit_required and DS_RD_SETTING.allow_longer_timeout
else DS_RD_SETTING.debug_timeout
)
return DS_RD_SETTING.debug_recommend_timeout
def real_full_timeout(self):
return (
@@ -150,15 +142,7 @@ class DataScienceScen(Scenario):
)
def recommend_full_timeout(self):
return (
DS_RD_SETTING.full_recommend_timeout
* min(
DS_RD_SETTING.runner_longer_timeout_multiplier_upper,
self.timeout_increase_count * DS_RD_SETTING.timeout_increase_stage + 1,
)
if self.longer_time_limit_required and DS_RD_SETTING.allow_longer_timeout
else DS_RD_SETTING.full_recommend_timeout
)
return DS_RD_SETTING.full_recommend_timeout
def increase_timeout(self):
"""Increase the timeout multiplier for the scenario."""