Skip to content

Commit

Permalink
sagemathgh-38609: fix the linter
Browse files Browse the repository at this point in the history
    
because pycodestyle is not happy with some allowed use of formatted
strings..

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [ ] The title is concise and informative.
- [ ] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#38609
Reported by: Frédéric Chapoton
Reviewer(s): Kwankyu Lee
  • Loading branch information
Release Manager committed Sep 12, 2024
2 parents b7f1260 + b768c3a commit 00decc1
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 00decc1

Please sign in to comment.