From 16f689606d9d36383ddc74c6071e36ece73638a1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 21 Oct 2024 21:29:59 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- openff/bespokefit/optimizers/forcebalance/factories.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/openff/bespokefit/optimizers/forcebalance/factories.py b/openff/bespokefit/optimizers/forcebalance/factories.py index 9e0e0f00..5dd74661 100644 --- a/openff/bespokefit/optimizers/forcebalance/factories.py +++ b/openff/bespokefit/optimizers/forcebalance/factories.py @@ -71,7 +71,11 @@ def _standardize_grid_id_str(grid_id: str) -> tuple[Union[int, float]]: def _get_qc_record_id(qc_record): - return qc_record.extras["id"] if qc_record.extras and "id" in qc_record.extras else qc_record.id + return ( + qc_record.extras["id"] + if qc_record.extras and "id" in qc_record.extras + else qc_record.id + ) class _TargetFactory(Generic[T], abc.ABC):