Skip to content

Commit 35a1903

Browse files
committed
reviewer changes
1 parent 97620cc commit 35a1903

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/sage/schemes/hyperelliptic_curves/constructor.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,7 @@ def HyperellipticCurve(f, h=0, names=None, PP=None, check_squarefree=True):
250250
)
251251
if not smooth:
252252
raise ValueError(
253-
"not a hyperelliptic curve: "
254-
"singularity in the provided affine patch"
253+
"not a hyperelliptic curve: singularity in the provided affine patch"
255254
)
256255
R = P.base_ring()
257256
PP = ProjectiveSpace(2, R)
@@ -266,9 +265,9 @@ def HyperellipticCurve(f, h=0, names=None, PP=None, check_squarefree=True):
266265
genus_classes = {2: HyperellipticCurve_g2}
267266
if g in genus_classes:
268267
bases.append(genus_classes[g])
269-
cls_name.append("g%s" % g)
268+
cls_name.append(f"g{g}")
270269

271-
# For certain base fields, we specialise to child classes
270+
# For certain base fields, we specialise to subclasses
272271
# with special case methods
273272
def is_FiniteField(x):
274273
return isinstance(x, FiniteField)

src/sage/schemes/hyperelliptic_curves/hyperelliptic_g2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ def jacobian(self):
5252
5353
sage: R.<x> = QQ[]
5454
sage: f = x^5 - x^4 + 3
55-
sage: HyperellipticCurve(f).jacobian
56-
<bound method HyperellipticCurve_g2.jacobian of Hyperelliptic Curve over Rational Field defined by y^2 = x^5 - x^4 + 3>
55+
sage: type(HyperellipticCurve(f).jacobian())
56+
<class 'sage.schemes.hyperelliptic_curves.jacobian_g2.HyperellipticJacobian_g2_with_category'>
5757
"""
5858
return jacobian_g2.HyperellipticJacobian_g2(self)
5959

0 commit comments

Comments
 (0)