Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 185b49c

Browse files
committed
Trac 16158: minor formatting changes
1 parent f86c030 commit 185b49c

File tree

3 files changed

+17
-23
lines changed

3 files changed

+17
-23
lines changed

src/sage/schemes/generic/homset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def create_object(self, version, key, **extra_args):
207207
X = extra_args.pop('X')
208208
Y = extra_args.pop('Y')
209209
base_ring = extra_args.pop('base_ring')
210-
if len(key) >= 4 and key[3]:
210+
if len(key) >= 4 and key[3]: # as_point_homset=True
211211
return Y._point_homset(X, Y, category=category, base=base_ring, **extra_args)
212212
try:
213213
return X._homset(X, Y, category=category, base=base_ring, **extra_args)

src/sage/schemes/generic/scheme.py

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,10 @@ def point(self, v, check=True):
340340
341341
INPUT:
342342
343-
- ``v`` -- anything that defines a point.
343+
- ``v`` -- anything that defines a point
344344
345-
- ``check`` -- boolean (optional, default=``True``). Whether
346-
to check the defining data for consistency.
345+
- ``check`` -- boolean (optional, default: ``True``); whether
346+
to check the defining data for consistency
347347
348348
OUTPUT:
349349
@@ -613,14 +613,14 @@ def hom(self, x, Y=None, check=True):
613613
614614
INPUT:
615615
616-
- ``x`` -- anything hat determines a scheme morphism. If ``x``
617-
is a scheme, try to determine a natural map to ``x``.
616+
- ``x`` -- anything that determines a scheme morphism; if
617+
``x`` is a scheme, try to determine a natural map to ``x``
618618
619-
- ``Y`` -- the codomain scheme (optional). If ``Y`` is not
620-
given, try to determine ``Y`` from context.
619+
- ``Y`` -- the codomain scheme (optional); if ``Y`` is not
620+
given, try to determine ``Y`` from context
621621
622-
- ``check`` -- boolean (optional, default=``True``). Whether
623-
to check the defining data for consistency.
622+
- ``check`` -- boolean (optional, default: ``True``); whether
623+
to check the defining data for consistency
624624
625625
OUTPUT:
626626
@@ -648,12 +648,12 @@ def _Hom_(self, Y, category=None, check=True):
648648
649649
INPUT:
650650
651-
- ``Y`` -- a scheme. The codomain of the Hom-set.
651+
- ``Y`` -- a scheme; the codomain of the Hom-set
652652
653-
- ``category`` -- a category (optional). The category of the
654-
Hom-set.
653+
- ``category`` -- a category (optional); the category of the
654+
Hom-set
655655
656-
- ``check`` -- boolean (optional, default=``True``). Whether
656+
- ``check`` -- boolean (optional, default: ``True``); whether
657657
to check the defining data for consistency.
658658
659659
OUTPUT:
@@ -1071,11 +1071,7 @@ def coordinate_ring(self):
10711071

10721072
def is_noetherian(self):
10731073
"""
1074-
Test whether ``self`` is Noetherian.
1075-
1076-
OUTPUT:
1077-
1078-
Boolean. Return ``True`` if this scheme is Noetherian.
1074+
Return ``True`` if ``self`` is Noetherian, ``False`` otherwise.
10791075
10801076
EXAMPLES::
10811077
@@ -1163,8 +1159,8 @@ def hom(self, x, Y=None):
11631159
11641160
INPUT:
11651161
1166-
- ``x`` -- anything hat determines a scheme morphism. If ``x``
1167-
is a scheme, try to determine a natural map to ``x``
1162+
- ``x`` -- anything that determines a scheme morphism; if
1163+
``x`` is a scheme, try to determine a natural map to ``x``
11681164
11691165
- ``Y`` -- the codomain scheme (optional); if ``Y`` is not
11701166
given, try to determine ``Y`` from context
@@ -1210,4 +1206,3 @@ def hom(self, x, Y=None):
12101206
if Y is None and is_RingHomomorphism(x):
12111207
Y = AffineScheme(x.domain())
12121208
return Scheme.hom(self, x, Y)
1213-

src/sage/schemes/generic/spec.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,3 @@ def _apply_functor_to_morphism(self, f):
189189

190190
from sage.structure.sage_object import register_unpickle_override
191191
register_unpickle_override('sage.schemes.generic.spec', 'Spec', AffineScheme)
192-

0 commit comments

Comments
 (0)