diff --git a/src/cobra/flux_analysis/loopless.py b/src/cobra/flux_analysis/loopless.py index 21770e65d..e218f53ac 100644 --- a/src/cobra/flux_analysis/loopless.py +++ b/src/cobra/flux_analysis/loopless.py @@ -162,9 +162,9 @@ def loopless_solution( - All fluxes have the same sign (flow in the same direction) as the previous solution. - When providing fluxes to the method, please note that those have to come from the exact same model - that you provided, meaning that no bounds or coefficients have been changed, and the - optimum has remained the same. + When providing fluxes to the method, please note that those have to come from the + exact same model that you provided, meaning that no bounds or coefficients have + been changed, and the optimum has remained the same. References ---------- diff --git a/tests/test_core/test_core_reaction.py b/tests/test_core/test_core_reaction.py index ff9c3fe0b..b15b31c2b 100644 --- a/tests/test_core/test_core_reaction.py +++ b/tests/test_core/test_core_reaction.py @@ -1036,7 +1036,7 @@ def test_compartment_changes(model: Model) -> None: def test_gpr_serialization(model: Model) -> None: """Verify that reactions GPRs are serialized compactly as str.""" state = model.reactions[0].__getstate__() - assert type(state["_gpr"]) == str + assert isinstance(state["_gpr"], str) def test_gpr_serialization_backwards_compatibility(model: Model) -> None: