From 66d96a44918c55cc4e995bd132ae4abfcd13c789 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 17:45:28 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- gmso/utils/conversions.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gmso/utils/conversions.py b/gmso/utils/conversions.py index 4ffa336d..85e3b98a 100644 --- a/gmso/utils/conversions.py +++ b/gmso/utils/conversions.py @@ -1,8 +1,10 @@ """Module for standard conversions needed in molecular simulations.""" + from __future__ import annotations -from typing import TYPE_CHECKING + import re from functools import lru_cache +from typing import TYPE_CHECKING import numpy as np import symengine @@ -11,7 +13,7 @@ from unyt.dimensions import length, mass, time if TYPE_CHECKING: - import gmso + import gmso from gmso.exceptions import EngineIncompatibilityError, GMSOError from gmso.lib.potential_templates import ( @@ -60,7 +62,7 @@ def _try_sympy_conversions(pot1, pot2): def _conversion_from_template_name( top, connStr: str, conn_typeStr: str, convStr: str -) -> 'gmso.Topology': +) -> "gmso.Topology": """Use the name of convStr to identify function to convert sympy expressions.""" conversions_map = { # these are predefined between template types # More functions, and `(to, from)` key pairs added to this dictionary @@ -104,7 +106,7 @@ def _conversion_from_template_name( def _conversion_from_template_obj( - top: 'gmso.Topology', + top: "gmso.Topology", connStr: str, conn_typeStr: str, potential_template: gmso.core.ParametricPotential,