Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 21, 2024
1 parent 4e97f34 commit 16f6896
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion openff/bespokefit/optimizers/forcebalance/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 16f6896

Please sign in to comment.