Skip to content

Commit 4142099

Browse files
author
Release Manager
committed
Trac #34168: Fix docstring markup in sage/categories
Part of #34157: {{{ sage/categories/unique_factorization_domains.py:74:1: RST215 Inline interpreted text or phrase reference start-string without end-string. sage/categories/unique_factorization_domains.py:223:1: RST303 Unknown directive type "seealso". sage/categories/unique_factorization_domains.py:273:1: RST303 Unknown directive type "seealso". sage/categories/fields.py:76:1: RST215 Inline interpreted text or phrase reference start-string without end-string. sage/categories/category.py:1394:1: RST303 Unknown directive type "todo". sage/categories/finite_coxeter_groups.py:204:1: RST303 Unknown directive type "todo". sage/categories/finite_coxeter_groups.py:466:1: RST303 Unknown directive type "todo". sage/categories/rings.py:388:1: RST215 Inline interpreted text or phrase reference start-string without end-string. sage/categories/affine_weyl_groups.py:21:1: RST303 Unknown directive type "todo". sage/categories/integral_domains.py:58:1: RST215 Inline interpreted text or phrase reference start-string without end-string. sage/categories/facade_sets.py:189:1: RST205 Explicit markup ends without a blank line; unexpected unindent. sage/categories/hecke_modules.py:111:1: RST215 Inline interpreted text or phrase reference start-string without end-string. sage/categories/category_with_axiom.py:752:1: RST201 Block quote ends without a blank line; unexpected unindent. }}} URL: https://trac.sagemath.org/34168 Reported by: klee Ticket author(s): John Palmieri Reviewer(s): Matthias Koeppe
2 parents e9be172 + 80d7f8f commit 4142099

9 files changed

+18
-16
lines changed

src/sage/categories/affine_weyl_groups.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class AffineWeylGroups(Category_singleton):
1919
"""
2020
The category of affine Weyl groups
2121
22-
.. todo:: add a description of this category
22+
.. TODO:: add a description of this category
2323
2424
.. SEEALSO::
2525

src/sage/categories/category.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ def _test_category_graph(self, **options):
13921392
method resolution order of the parent and element
13931393
classes. This method checks this.
13941394
1395-
.. todo:: currently, this won't work for hom categories.
1395+
.. TODO:: currently, this won't work for hom categories.
13961396
13971397
EXAMPLES::
13981398

src/sage/categories/facade_sets.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,10 @@ def __contains__(self, element):
186186
Returns whether ``element`` is in one of the parents
187187
``self`` is a facade for.
188188
189-
.. warning:: this default implementation is currently
190-
overridden by :meth:`Parent.__contains__`.
189+
.. warning::
190+
191+
this default implementation is currently
192+
overridden by :meth:`Parent.__contains__`.
191193
192194
EXAMPLES::
193195

src/sage/categories/fields.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def __contains__(self, x):
7676
7777
This implementation will not be needed anymore once every
7878
field in Sage will be properly declared in the category
79-
:class:`Fields`().
79+
:class:`Fields() <Fields>`.
8080
8181
Caveat: this should eventually be fixed::
8282

src/sage/categories/finite_coxeter_groups.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def bruhat_poset(self, facade=False):
202202
sage: [len(WeylGroup(["A", n]).bruhat_poset().cover_relations()) for n in [1,2,3]]
203203
[1, 8, 58]
204204
205-
.. todo::
205+
.. TODO::
206206
207207
- Use the symmetric group in the examples (for nicer
208208
output), and print the edges for a stronger test.
@@ -464,7 +464,7 @@ def weak_poset(self, side="right", facade=False):
464464
sage: [len(WeylGroup(["A", n]).weak_poset(side = "left" ).cover_relations()) for n in [1,2,3]]
465465
[1, 6, 36]
466466
467-
.. todo::
467+
.. TODO::
468468
469469
- Use the symmetric group in the examples (for nicer
470470
output), and print the edges for a stronger test.

src/sage/categories/hecke_modules.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ def _Hom_(self, Y, category):
109109
INPUT:
110110
111111
- ``Y`` -- an Hecke module
112-
- ``category`` -- a subcategory of :class:`HeckeModules`() or None
112+
- ``category`` -- a subcategory of :class:`HeckeModules()
113+
<HeckeModules>` or ``None``
113114
114115
The sole purpose of this method is to construct the homset
115116
as a :class:`~sage.modular.hecke.homspace.HeckeModuleHomspace`. If
@@ -143,7 +144,6 @@ def _Hom_(self, Y, category):
143144
Traceback (most recent call last):
144145
...
145146
TypeError: Category of Hecke modules over Finite Field of size 5 is not a subcategory of Category of Hecke modules over Rational Field
146-
147147
"""
148148
# TODO: double check that it's the correct HeckeModules category below:
149149
if category is not None and not category.is_subcategory(HeckeModules(self.base_ring())):

src/sage/categories/integral_domains.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def __contains__(self, x):
5858
5959
This implementation will not be needed anymore once every
6060
field in Sage will be properly declared in the category
61-
:class:`IntegralDomains`().
61+
:class:`IntegralDomains() <IntegralDomains>`.
6262
"""
6363
try:
6464
return self._contains_helper(x) or x.is_integral_domain()

src/sage/categories/rings.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -386,12 +386,13 @@ def _Hom_(self, Y, category):
386386
INPUT:
387387
388388
- ``Y`` -- a ring
389-
- ``category`` -- a subcategory of :class:`Rings`() or None
389+
- ``category`` -- a subcategory of :class:`Rings()
390+
<Rings>` or ``None``
390391
391392
The sole purpose of this method is to construct the homset
392393
as a :class:`~sage.rings.homset.RingHomset`. If
393394
``category`` is specified and is not a subcategory of
394-
:class:`Rings`, a ``TypeError`` is raised instead
395+
:class:`Rings() <Rings>`, a ``TypeError`` is raised instead
395396
396397
This method is not meant to be called directly. Please use
397398
:func:`sage.categories.homset.Hom` instead.
@@ -412,7 +413,6 @@ def _Hom_(self, Y, category):
412413
<class 'sage.rings.number_field.homset.CyclotomicFieldHomset_with_category'>
413414
414415
sage: TestSuite(Hom(QQ, QQ, category = Rings())).run() # indirect doctest
415-
416416
"""
417417
if category is not None and not category.is_subcategory(Rings()):
418418
raise TypeError("%s is not a subcategory of Rings()"%category)

src/sage/categories/unique_factorization_domains.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def __contains__(self, x):
7474
7575
This implementation will not be needed anymore once every
7676
field in Sage will be properly declared in the category
77-
:class:`UniqueFactorizationDomains`().
77+
:class:`UniqueFactorizationDomains() <UniqueFactorizationDomains>`.
7878
"""
7979
try:
8080
return self._contains_helper(x) or x.is_unique_factorization_domain()
@@ -221,7 +221,7 @@ def radical(self, *args, **kwds):
221221
This default implementation calls ``squarefree_decomposition`` if
222222
available, and ``factor`` otherwise.
223223
224-
.. seealso:: :meth:`squarefree_part`
224+
.. SEEALSO:: :meth:`squarefree_part`
225225
226226
EXAMPLES::
227227
@@ -271,7 +271,7 @@ def squarefree_part(self):
271271
272272
This default implementation calls ``squarefree_decomposition``.
273273
274-
.. seealso:: :meth:`radical`
274+
.. SEEALSO:: :meth:`radical`
275275
276276
EXAMPLES::
277277

0 commit comments

Comments
 (0)