Fix linter

This commit is contained in:
Contramundum
2023-09-07 17:45:58 +09:00
parent 4e8c6051e4
commit f152ee1995
2 changed files with 2 additions and 2 deletions
@@ -67,7 +67,7 @@ def get_skipped_trial_ids(study_system_attrs: dict[str, Any]) -> list[int]:
if not k.startswith(_SYSTEM_ATTR_PREFIX_SKIP_TRIAL):
continue
try:
trial_id = int(k[len(_SYSTEM_ATTR_PREFIX_SKIP_TRIAL) :])
trial_id = int(k[len(_SYSTEM_ATTR_PREFIX_SKIP_TRIAL) :]) # noqa: E203
skipped_trial_ids.append(trial_id)
except ValueError:
continue
+1 -1
View File
@@ -160,7 +160,7 @@ class APITestCase(TestCase):
storage = optuna.storages.InMemoryStorage()
study = create_study(storage=storage, n_generate=3)
for _ in range(3):
trial = study.ask()
study.ask()
app = create_app(storage)
study_id = study._study._study_id