Skip to content

Commit 41893fd

Browse files
committed
Docstring suggestions by kwankyu
For commits d4a3ce9 and 8f00496.
1 parent 56f8390 commit 41893fd

16 files changed

Lines changed: 55 additions & 50 deletions

src/sage/algebras/steenrod/steenrod_algebra_bases.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ def steenrod_algebra_basis(n, basis='milnor', p=2, **kwds):
269269
- ``profile`` -- profile function (default: ``None``); this
270270
is just passed on to the functions :func:`milnor_basis` and
271271
:func:`pst_basis`
272-
- ``truncation_type`` -- truncation type, either 0 or Infinity
273-
(default: Infinity if no profile function is specified,
272+
- ``truncation_type`` -- truncation type, either 0 or ``Infinity``
273+
(default: ``Infinity`` if no profile function is specified,
274274
0 otherwise). This is just passed on to the function
275275
:func:`milnor_basis`.
276276
- ``generic`` -- boolean (default: ``None``)
@@ -525,8 +525,8 @@ def milnor_basis(n, p=2, **kwds):
525525
:func:`SteenrodAlgebra <sage.algebras.steenrod.steenrod_algebra.SteenrodAlgebra>`
526526
for information on profile functions.
527527
528-
- ``truncation_type`` -- truncation type, either 0 or Infinity
529-
(default: Infinity if no profile function is specified,
528+
- ``truncation_type`` -- truncation type, either 0 or ``Infinity``
529+
(default: ``Infinity`` if no profile function is specified,
530530
0 otherwise)
531531
532532
OUTPUT: tuple of mod `p` Milnor basis elements in dimension `n`
@@ -774,8 +774,8 @@ def atomic_basis(n, basis, **kwds):
774774
:mod:`sage.algebras.steenrod.steenrod_algebra` and
775775
:func:`SteenrodAlgebra` for information on profile functions.
776776
777-
- ``truncation_type`` -- truncation type, either 0 or Infinity
778-
(default: Infinity if no profile function is specified,
777+
- ``truncation_type`` -- truncation type, either 0 or ``Infinity``
778+
(default: ``Infinity`` if no profile function is specified,
779779
0 otherwise).
780780
781781
OUTPUT: tuple of basis elements in dimension `n`
@@ -1005,8 +1005,8 @@ def atomic_basis_odd(n, basis, p, **kwds):
10051005
:mod:`sage.algebras.steenrod.steenrod_algebra` and
10061006
:func:`SteenrodAlgebra` for information on profile functions.
10071007
1008-
- ``truncation_type`` -- truncation type, either 0 or Infinity
1009-
(default: Infinity if no profile function is specified,
1008+
- ``truncation_type`` -- truncation type, either 0 or ``Infinity``
1009+
(default: ``Infinity`` if no profile function is specified,
10101010
0 otherwise).
10111011
10121012
OUTPUT: tuple of basis elements in dimension `n`

src/sage/combinat/ranker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def unrank(L, i):
181181
INPUT:
182182
183183
- ``L`` -- list, tuple, finite enumerated set, etc.
184-
- ``i`` -- integer or :class:`Integer`
184+
- ``i`` -- integer
185185
186186
The purpose of this utility is to give a uniform idiom to recover
187187
the `i`-th element of an object ``L``, whether ``L`` is a list,

src/sage/schemes/berkovich/berkovich_cp_element.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ def diameter(self, basepoint=Infinity):
610610
611611
INPUT:
612612
613-
- ``basepoint`` -- (default: Infinity) a point of the
613+
- ``basepoint`` -- (default: ``Infinity``) a point of the
614614
same Berkovich space as this point
615615
616616
OUTPUT: a real number
@@ -1555,8 +1555,8 @@ def join(self, other, basepoint=Infinity):
15551555
INPUT:
15561556
15571557
- ``other`` -- a point of the same Berkovich space as this point
1558-
- ``basepoint`` -- (default: Infinity) a point of the same
1559-
Berkovich space as this point or Infinity
1558+
- ``basepoint`` -- (default: ``Infinity``) a point of the same
1559+
Berkovich space as this point or ``Infinity``
15601560
15611561
OUTPUT: a point of the same Berkovich space
15621562
@@ -2238,8 +2238,8 @@ def join(self, other, basepoint=Infinity):
22382238
INPUT:
22392239
22402240
- ``other`` -- a point of the same Berkovich space as this point
2241-
- ``basepoint`` -- (default: Infinity) a point of the same
2242-
Berkovich space as this point, or infinity
2241+
- ``basepoint`` -- (default: ``Infinity``) a point of the same
2242+
Berkovich space as this point, or ``Infinity``
22432243
22442244
OUTPUT: a point of the same Berkovich space
22452245

src/sage/schemes/elliptic_curves/ell_curve_isogeny.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def compute_vw_kohel_even_deg1(x0, y0, a1, a2, a4):
274274
275275
- ``a1``, ``a2``, ``a4`` -- invariants of `E`
276276
277-
OUTPUT: tuple) Vélu's isogeny parameters `(v,w)`.
277+
OUTPUT: Vélu's isogeny parameters `(v,w)`.
278278
279279
EXAMPLES:
280280
@@ -310,7 +310,7 @@ def compute_vw_kohel_even_deg3(b2, b4, s1, s2, s3):
310310
- ``s1``, ``s2``, ``s3`` -- signed coefficients of the 2-division
311311
polynomial of `E`
312312
313-
OUTPUT: tuple) Vélu's isogeny parameters `(v,w)`.
313+
OUTPUT: Vélu's isogeny parameters `(v,w)`.
314314
315315
EXAMPLES:
316316
@@ -349,7 +349,7 @@ def compute_vw_kohel_odd(b2, b4, b6, s1, s2, s3, n):
349349
350350
- ``n`` -- integer; the degree
351351
352-
OUTPUT: tuple; Vélu's isogeny parameters `(v,w)`
352+
OUTPUT: Vélu's isogeny parameters `(v,w)`
353353
354354
EXAMPLES:
355355

src/sage/schemes/elliptic_curves/ell_local_data.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def __init__(self, E, P, proof=None, algorithm='pari', globally=False):
165165
166166
- ``P`` -- a prime ideal of the field, or a prime integer if the field is `\QQ`
167167
168-
- ``proof`` -- bool-- if ``True``, only use provably correct
168+
- ``proof`` -- boolean; if ``True``, only use provably correct
169169
methods (default: controlled by global proof module). Note
170170
that the proof module is number_field, not elliptic_curves,
171171
since the functions that actually need the flag are in
@@ -508,7 +508,7 @@ def bad_reduction_type(self):
508508
509509
OUTPUT:
510510
511-
(int or ``None``):
511+
integer or ``None``:
512512
513513
- +1 for split multiplicative reduction
514514
- -1 for non-split multiplicative reduction
@@ -697,7 +697,7 @@ def _tate(self, proof=None, globally=False):
697697
698698
(tuple) ``(Emin, p, val_disc, fp, KS, cp)`` where:
699699
700-
- ``Emin`` -- EllipticCurve; a model (integral and) minimal at P
700+
- ``Emin`` -- :class:`EllipticCurve`; a model (integral and) minimal at P
701701
- ``p`` -- integer; the residue characteristic
702702
- ``val_disc`` -- integer; the valuation of the local minimal discriminant
703703
- ``fp`` -- integer; the valuation of the conductor

src/sage/schemes/elliptic_curves/ell_number_field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ def local_data(self, P=None, proof=None, algorithm='pari', globally=False):
844844
845845
INPUT:
846846
847-
- ``P`` -- either None, a prime ideal of the base field of ``self``,
847+
- ``P`` -- either ``None``, a prime ideal of the base field of ``self``,
848848
or an element of the base field that generates a prime ideal
849849
850850
- ``proof`` -- whether to only use provably correct methods

src/sage/schemes/elliptic_curves/ell_point.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,12 +1485,12 @@ def _line_(self, R, Q):
14851485
14861486
INPUT:
14871487
1488-
- ``R``, ``Q`` -- points on ``self.curve()`` with ``Q`` nonzero
1488+
- ``R``, ``Q`` -- points on ``self.curve()`` with `Q` nonzero
14891489
14901490
OUTPUT:
14911491
14921492
An element of the base field ``self.curve().base_field()``.
1493-
A :exc:`ValueError` is raised if ``Q`` is zero.`
1493+
A :exc:`ValueError` is raised if `Q` is zero.
14941494
14951495
EXAMPLES::
14961496

src/sage/schemes/elliptic_curves/gal_reps_number_field.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def _non_surjective(E, patience=100):
427427
428428
INPUT:
429429
430-
- ``E`` -- EllipticCurve (over a number field)
430+
- ``E`` -- :class:`EllipticCurve` (over a number field)
431431
432432
- ``A`` -- integer; a bound on the number of traces of Frobenius to use
433433
while trying to prove surjectivity
@@ -500,7 +500,7 @@ def Frobenius_filter(E, L, patience=100):
500500
501501
INPUT:
502502
503-
- ``E`` -- EllipticCurve over a number field
503+
- ``E`` -- :class:`EllipticCurve` over a number field
504504
505505
- ``L`` -- list of prime numbers
506506
@@ -599,7 +599,7 @@ def _exceptionals(E, L, patience=1000):
599599
600600
INPUT:
601601
602-
- ``E`` -- EllipticCurve over a number field
602+
- ``E`` -- :class:`EllipticCurve` over a number field
603603
604604
- ``L`` -- list of prime numbers
605605
@@ -748,7 +748,7 @@ def _over_numberfield(E):
748748
749749
INPUT:
750750
751-
- ``E`` -- EllipticCurve over a number field
751+
- ``E`` -- :class:`EllipticCurve` over a number field
752752
753753
OUTPUT:
754754
@@ -827,7 +827,7 @@ def _semistable_reducible_primes(E, verbose=False):
827827
828828
INPUT:
829829
830-
- ``E`` -- EllipticCurve over a number field
830+
- ``E`` -- :class:`EllipticCurve` over a number field
831831
832832
OUTPUT:
833833
@@ -1003,7 +1003,7 @@ def _possible_normalizers(E, SA):
10031003
10041004
INPUT:
10051005
1006-
- ``E`` -- EllipticCurve over a number field K
1006+
- ``E`` -- :class:`EllipticCurve` over a number field K
10071007
10081008
- ``SA`` -- list of primes of K
10091009

src/sage/schemes/elliptic_curves/isogeny_small_degree.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2039,8 +2039,8 @@ def isogenies_prime_degree_genus_plus_0(E, l=None, minimal_models=True):
20392039

20402040
psi = Fxuv(Psi2(l))
20412041
for u0, v0 in S:
2042-
A4 = Fuv(data['A4'])(u0,v0) #nonzero since j!=0
2043-
A6 = Fuv(data['A6'])(u0,v0) #nonzero since j!=1728
2042+
A4 = Fuv(data['A4'])(u0,v0) # nonzero since j!=0
2043+
A6 = Fuv(data['A6'])(u0,v0) # nonzero since j!=1728
20442044
T = (c4*A6)/(2*c6*A4)
20452045
kernels += [psi((36*X+3*b2)*T,u0,v0).monic()]
20462046
return [E.isogeny(ker) for ker in kernels]

src/sage/schemes/elliptic_curves/period_lattice_region.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ cdef class PeriodicRegion:
187187
188188
INPUT:
189189
190-
- ``condition`` -- function, (default: ``None``); if not ``None``, only
190+
- ``condition`` -- function (default: ``None``); if not ``None``, only
191191
keep tiles in the refinement which satisfy the condition
192192
193193
- ``times`` -- integer (default: 1); the number of times to refine.

0 commit comments

Comments
 (0)