Skip to content

Commit b967ec8

Browse files
committed
links for errors in doc of groups
1 parent 30b3d78 commit b967ec8

File tree

13 files changed

+25
-19
lines changed

13 files changed

+25
-19
lines changed

src/sage/groups/additive_abelian/qmodnz_element.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def _integer_(self, Z):
112112
Lift to `\Z`.
113113
114114
This is the smallest non-negative integer reducing to this element,
115-
or a ``ValueError`` if none exists.
115+
or a :class:`ValueError` if none exists.
116116
117117
TESTS::
118118

src/sage/groups/affine_gps/affine_group.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,10 @@ def __init__(self, degree, ring):
228228

229229
def _element_constructor_check(self, A, b):
230230
"""
231-
Verify that ``A``, ``b`` define an affine group element and raises a
232-
``TypeError`` if the input does not define a valid group element.
231+
Verify that ``A``, ``b`` define an affine group element.
232+
233+
This raises a :class:`TypeError` if the input does not define
234+
a valid group element.
233235
234236
This is called from the group element constructor and can be
235237
overridden for subgroups of the affine group. It is guaranteed

src/sage/groups/affine_gps/euclidean_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def _element_constructor_check(self, A, b):
170170
171171
OUTPUT:
172172
173-
The return value is ignored. You must raise a ``TypeError`` if
173+
The return value is ignored. You must raise a :class:`TypeError` if
174174
the input does not define a valid group element.
175175
176176
TESTS::

src/sage/groups/artin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,8 @@ def as_permutation_group(self):
534534
"""
535535
Return an isomorphic permutation group.
536536
537-
Raises a ``ValueError`` error since Artin groups are infinite
538-
and have no corresponding permutation group.
537+
This raises a :class:`ValueError` error since Artin groups are
538+
infinite and have no corresponding permutation group.
539539
540540
EXAMPLES::
541541

src/sage/groups/braid.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2658,7 +2658,8 @@ def as_permutation_group(self):
26582658
26592659
OUTPUT:
26602660
2661-
Raises a ``ValueError`` error since braid groups are infinite.
2661+
This raises a :class:`ValueError` error since braid groups
2662+
are infinite.
26622663
26632664
TESTS::
26642665

src/sage/groups/finitely_presented.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def wrap_FpGroup(libgap_fpgroup):
416416
return FinitelyPresentedGroup(free_group, relations)
417417

418418

419-
class RewritingSystem():
419+
class RewritingSystem:
420420
"""
421421
A class that wraps GAP's rewriting systems.
422422
@@ -967,7 +967,7 @@ def as_permutation_group(self, limit=4096000):
967967
A Sage
968968
:func:`~sage.groups.perm_gps.permgroup.PermutationGroup`. If
969969
the number of cosets exceeds the given ``limit``, a
970-
``ValueError`` is returned.
970+
:class:`ValueError` is returned.
971971
972972
EXAMPLES::
973973

src/sage/groups/fqf_orthogonal.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ def _act_(self, g, a):
488488
P = a.parent()
489489
return P.linear_combination_of_smith_form_gens(v)
490490

491+
491492
def _isom_fqf(A, B=None):
492493
r"""
493494
Return isometries from `A` to `B`.
@@ -500,8 +501,9 @@ def _isom_fqf(A, B=None):
500501
OUTPUT:
501502
502503
A list of generators of the orthogonal group of A.
503-
If ``B`` is given returns instead a single isometry of `A` and `B` or
504-
raises an ``ValueError`` if `A` and `B` are not isometric.
504+
505+
If ``B`` is given, this returns instead a single isometry of `A` and `B`
506+
or raises a :class:`ValueError` if `A` and `B` are not isometric.
505507
506508
EXAMPLES::
507509

src/sage/groups/libgap_mixin.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
If your group implementation uses libgap, then you should add
1010
:class:`GroupMixinLibGAP` as the first class that you are deriving
1111
from. This ensures that it properly overrides any default methods that
12-
just raise ``NotImplementedError``.
12+
just raise :class:`NotImplementedError`.
1313
"""
1414

1515
from sage.libs.gap.libgap import libgap
@@ -19,7 +19,8 @@
1919
from sage.groups.class_function import ClassFunction_libgap
2020
from sage.groups.libgap_wrapper import ElementLibGAP
2121

22-
class GroupMixinLibGAP():
22+
23+
class GroupMixinLibGAP:
2324
def __contains__(self, elt):
2425
r"""
2526
TESTS::

src/sage/groups/matrix_gps/finitely_generated_gap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,15 +336,15 @@ def invariant_generators(self):
336336
VarStr = 'y'
337337
else:
338338
VarStr = 'x'
339-
VarNames = '(' + ','.join((VarStr+str(i) for i in range(1, n+1)))+')'
339+
VarNames = '(' + ','.join(VarStr+str(i) for i in range(1, n+1))+')'
340340
# The function call and affectation below have side-effects. Do not remove!
341341
# (even if pyflakes say so)
342342
R = singular.ring(FieldStr, VarNames, 'dp')
343343
if hasattr(F, 'polynomial') and F.gen() != 1:
344344
# we have to define minpoly
345345
singular.eval('minpoly = '+str(F.polynomial()).replace('x',str(F.gen())))
346346
A = [singular.matrix(n,n,str((x.matrix()).list())) for x in gens]
347-
Lgens = ','.join((x.name() for x in A))
347+
Lgens = ','.join(x.name() for x in A)
348348
PR = PolynomialRing(F, n, [VarStr+str(i) for i in range(1,n+1)])
349349

350350
if q == 0 or (q > 0 and self.cardinality() % q):

src/sage/groups/matrix_gps/matrix_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def _check_matrix(self, x, *args):
133133
134134
OUTPUT:
135135
136-
A ``TypeError`` must be raised if ``x`` is invalid.
136+
A :class:`TypeError` must be raised if ``x`` is invalid.
137137
138138
EXAMPLES::
139139

0 commit comments

Comments
 (0)