Skip to content

Commit

Permalink
fix spelling error
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-dudt committed Mar 4, 2024
1 parent 8a747e6 commit efcbe1b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion desc/objectives/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ def factorize_linear_constraints(objective, constraint): # noqa: C901
"""
for con in constraint.objectives:
errorif(not con.linear, ValueError, f"Cannot handle nonlinear onstraint {con}.")
errorif(
not con.linear,
ValueError,
"Cannot handle nonlinear constraint {con}.",
)
errorif(
con.bounds is not None,
ValueError,
Expand Down

0 comments on commit efcbe1b

Please sign in to comment.