Skip to content

Commit 9e160d3

Browse files
author
Release Manager
committed
gh-36968: fix alignment in documentation (ruff D207 and D208) this used ruff with code D207 and D208 to auto-fix many alignement issues in our documentation ### 📝 Checklist - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. URL: #36968 Reported by: Frédéric Chapoton Reviewer(s): Kwankyu Lee
2 parents 5f8cf2f + 18bfaa9 commit 9e160d3

File tree

109 files changed

+196
-192
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+196
-192
lines changed

src/sage/algebras/free_algebra.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ def _element_constructor_(self, x):
578578
sage: (F.1*L.2).parent() is F
579579
True
580580
581-
::
581+
::
582582
583583
sage: # needs sage.libs.singular sage.rings.finite_rings
584584
sage: K.<z> = GF(25)

src/sage/algebras/free_algebra_quotient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def monoid(self):
319319
"""
320320
The free monoid of generators of the algebra.
321321
322-
EXAMPLES::
322+
EXAMPLES::
323323
324324
sage: sage.algebras.free_algebra_quotient.hamilton_quatalg(QQ)[0].monoid()
325325
Free monoid on 3 generators (i0, i1, i2)

src/sage/categories/additive_magmas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ def __bool__(self):
787787
False
788788
sage: bool(S.an_element())
789789
True
790-
"""
790+
"""
791791

792792
def _test_nonzero_equal(self, **options):
793793
r"""

src/sage/categories/algebra_functor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ def group(self):
577577
sage: from sage.categories.algebra_functor import GroupAlgebraFunctor
578578
sage: GroupAlgebraFunctor(CyclicPermutationGroup(17)).group() == CyclicPermutationGroup(17)
579579
True
580-
"""
580+
"""
581581
return self.__group
582582

583583
def _apply_functor(self, base_ring):

src/sage/categories/coxeter_groups.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,7 +1790,7 @@ def has_full_support(self):
17901790
sage: w = W.from_reduced_word([1,2,1,0,1])
17911791
sage: w.has_full_support()
17921792
True
1793-
"""
1793+
"""
17941794
return self.support() == set(self.parent().index_set())
17951795

17961796
def reduced_word_graph(self):
@@ -3155,7 +3155,7 @@ def kazhdan_lusztig_cell(self, side='left'):
31553155
sage: s1.kazhdan_lusztig_cell()
31563156
{[1], [2, 1], [3, 2, 1]}
31573157
3158-
Next, we compute a right cell and a two-sided cell in `A_3`::
3158+
Next, we compute a right cell and a two-sided cell in `A_3`::
31593159
31603160
sage: # optional - coxeter3, needs sage.combinat sage.groups sage.modules
31613161
sage: W = CoxeterGroup('A3', implementation='coxeter3')

src/sage/categories/enumerated_sets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ def random_element(self):
941941
Traceback (most recent call last):
942942
...
943943
NotImplementedError: unknown cardinality
944-
"""
944+
"""
945945
raise NotImplementedError("unknown cardinality")
946946

947947
def map(self, f, name=None, *, is_injective=True):

src/sage/categories/examples/finite_weyl_groups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def product(self, x, y):
153153
sage: s = FiniteWeylGroups().example().simple_reflections()
154154
sage: s[1] * s[2]
155155
(0, 2, 3, 1)
156-
"""
156+
"""
157157
assert x in self
158158
assert y in self
159159
return self(tuple(x.value[i] for i in y.value))

src/sage/categories/finite_groups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def conjugacy_classes_representatives(self):
177177
sage: G = SymmetricGroup(3)
178178
sage: G.conjugacy_classes_representatives()
179179
[(), (1,2), (1,2,3)]
180-
"""
180+
"""
181181
return [C.representative() for C in self.conjugacy_classes()]
182182

183183
class ElementMethods:

src/sage/categories/magmas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def FinitelyGenerated(self):
255255
256256
The use of this shorthand should be reserved for casual
257257
interactive use or when there is no risk of ambiguity.
258-
"""
258+
"""
259259
from sage.categories.additive_magmas import AdditiveMagmas
260260
if self.is_subcategory(AdditiveMagmas()):
261261
raise ValueError("FinitelyGenerated is ambiguous for {}.\nPlease use explicitly one of the FinitelyGeneratedAsXXX methods".format(self))

src/sage/categories/modules_with_basis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2247,7 +2247,7 @@ def __call_on_basis__(self, **options):
22472247
sage: phi(x[1] + x[3]) # needs sage.modules
22482248
0
22492249
2250-
We check that the homset category is properly set up::
2250+
We check that the homset category is properly set up::
22512251
22522252
sage: # needs sage.modules
22532253
sage: X = CombinatorialFreeModule(QQ, [1,2,3]); X.rename("X")

0 commit comments

Comments
 (0)