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

Commit

Permalink
Fix a doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
kwankyu committed Jun 26, 2022
1 parent 4a9446c commit 0b3b860
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/sage/geometry/toric_lattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ def span(self, gens, base_ring=ZZ, *args, **kwds):
- ``gens`` -- list of elements of the ambient vector space of
``self``.
- ``base_ring`` -- (default: `\ZZ`) base ring for the generated module.
OUTPUT:
Expand All @@ -793,8 +793,7 @@ def span(self, gens, base_ring=ZZ, *args, **kwds):
sage: Ns.submodule([N.gen(1)])
Traceback (most recent call last):
...
ArithmeticError: Argument gens (= [N(0, 1, 0)])
does not generate a submodule of self.
ArithmeticError: argument gens (= [N(0, 1, 0)]) does not generate a submodule of self
"""
A = self.ambient_module()
if base_ring is ZZ and all(g in A for g in gens):
Expand All @@ -813,9 +812,9 @@ def span_of_basis(self, basis, base_ring=ZZ, *args, **kwds):
- ``basis`` -- list of elements of the ambient vector space of
``self``.
- ``base_ring`` -- (default: `\ZZ`) base ring for the generated module.
OUTPUT:
- submodule spanned by ``basis``.
Expand Down
1 change: 1 addition & 0 deletions src/sage/modules/free_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -7383,6 +7383,7 @@ def has_user_basis(self):

FreeModule_generic_pid._submodule_class = FreeModule_submodule_pid


class FreeModule_submodule_with_basis_field(FreeModule_generic_field, FreeModule_submodule_with_basis_pid):
"""
An embedded vector subspace with a distinguished user basis.
Expand Down

0 comments on commit 0b3b860

Please sign in to comment.