Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the linter #38609

Merged
merged 1 commit into from
Sep 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/sage/schemes/hyperelliptic_curves/constructor.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def HyperellipticCurve(f, h=0, names=None, PP=None, check_squarefree=True):
# rather than f and h, one of which might be constant.
F = h**2 + 4 * f
if not isinstance(F, Polynomial):
raise TypeError(f"arguments {f = } and {h = } must be polynomials")
raise TypeError(f"arguments f = {f} and h = {h} must be polynomials")
P = F.parent()
f = P(f)
h = P(h)
Expand All @@ -220,7 +220,7 @@ def HyperellipticCurve(f, h=0, names=None, PP=None, check_squarefree=True):
# characteristic 2
if h == 0:
raise ValueError(
f"for characteristic 2, argument {h = } must be nonzero"
f"for characteristic 2, argument h = {h} must be nonzero"
)
if h[g + 1] == 0 and f[2 * g + 1] ** 2 == f[2 * g + 2] * h[g] ** 2:
raise ValueError(
Expand Down
Loading