Skip to content

Commit 69d6265

Browse files
author
Matthias Koeppe
committed
src/sage/rings/number_field/number_field.py: Docstring cosmetics
1 parent 417568b commit 69d6265

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/sage/rings/number_field/number_field.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2013,7 +2013,7 @@ def _convert_from_str(self, x):
20132013
20142014
INPUT:
20152015
2016-
- x -- string
2016+
- ``x`` -- string
20172017
20182018
EXAMPLES::
20192019
@@ -2442,7 +2442,7 @@ def subfield_from_elements(self, alpha, name=None, polred=True, threshold=None):
24422442
24432443
- ``name`` -- a name for the generator of the new number field
24442444
2445-
- ``polred`` -- (boolean, default ``True``) whether to optimize the generator of
2445+
- ``polred`` -- (boolean, default ``True``); whether to optimize the generator of
24462446
the newly created field
24472447
24482448
- ``threshold`` -- (positive number, default ``None``) threshold to be passed to
@@ -7368,7 +7368,7 @@ def S_unit_group(self, proof=None, S=None):
73687368
73697369
INPUT:
73707370
7371-
- ``proof`` (bool, default True) flag passed to PARI.
7371+
- ``proof`` -- bool (default: ``True``); flag passed to PARI
73727372
73737373
- ``S`` -- list or tuple of prime ideals, or an ideal, or a single
73747374
ideal or element from which an ideal can be constructed, in
@@ -11975,7 +11975,7 @@ def zeta(self, n=None, all=False):
1197511975
- ``n`` -- integer (default: ``None``, returns element of
1197611976
maximal order)
1197711977
11978-
- ``all`` -- bool (default: ``False``) - whether to return
11978+
- ``all`` -- bool (default: ``False``); whether to return
1197911979
a list of all primitive `n`-th roots of unity.
1198011980
1198111981
OUTPUT: root of unity or list
@@ -12573,7 +12573,9 @@ def put_natural_embedding_first(v):
1257312573
"""
1257412574
Helper function for embeddings() functions for number fields.
1257512575
12576-
INPUT: a list of embeddings of a number field
12576+
INPUT:
12577+
12578+
- ``v`` -- a list of embeddings of a number field
1257712579
1257812580
OUTPUT: ``None``. The
1257912581
list is altered in-place, so that, if possible, the first embedding

0 commit comments

Comments
 (0)