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

Commit 0b3b860

Browse files
committed
Fix a doctest
1 parent 4a9446c commit 0b3b860

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/sage/geometry/toric_lattice.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ def span(self, gens, base_ring=ZZ, *args, **kwds):
766766
767767
- ``gens`` -- list of elements of the ambient vector space of
768768
``self``.
769-
769+
770770
- ``base_ring`` -- (default: `\ZZ`) base ring for the generated module.
771771
772772
OUTPUT:
@@ -793,8 +793,7 @@ def span(self, gens, base_ring=ZZ, *args, **kwds):
793793
sage: Ns.submodule([N.gen(1)])
794794
Traceback (most recent call last):
795795
...
796-
ArithmeticError: Argument gens (= [N(0, 1, 0)])
797-
does not generate a submodule of self.
796+
ArithmeticError: argument gens (= [N(0, 1, 0)]) does not generate a submodule of self
798797
"""
799798
A = self.ambient_module()
800799
if base_ring is ZZ and all(g in A for g in gens):
@@ -813,9 +812,9 @@ def span_of_basis(self, basis, base_ring=ZZ, *args, **kwds):
813812
814813
- ``basis`` -- list of elements of the ambient vector space of
815814
``self``.
816-
815+
817816
- ``base_ring`` -- (default: `\ZZ`) base ring for the generated module.
818-
817+
819818
OUTPUT:
820819
821820
- submodule spanned by ``basis``.

src/sage/modules/free_module.py

+1
Original file line numberDiff line numberDiff line change
@@ -7383,6 +7383,7 @@ def has_user_basis(self):
73837383

73847384
FreeModule_generic_pid._submodule_class = FreeModule_submodule_pid
73857385

7386+
73867387
class FreeModule_submodule_with_basis_field(FreeModule_generic_field, FreeModule_submodule_with_basis_pid):
73877388
"""
73887389
An embedded vector subspace with a distinguished user basis.

0 commit comments

Comments
 (0)