Skip to content

Commit 4591ae8

Browse files
committed
Remove domain restriction
1 parent 30b3d78 commit 4591ae8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/modules/submodule.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
# ****************************************************************************
3636

3737
from sage.modules.free_module import (
38-
FreeModule_ambient_domain,
38+
FreeModule_ambient,
3939
Module_free_ambient,
4040
basis_seq,
4141
)
@@ -99,7 +99,7 @@ def __init__(self, ambient, gens, check=True, already_echelonized=False):
9999
sage: N.is_submodule(M)
100100
True
101101
"""
102-
if not isinstance(ambient, (FreeModule_ambient_domain, QuotientModule_free_ambient)):
102+
if not isinstance(ambient, (FreeModule_ambient, QuotientModule_free_ambient)):
103103
raise TypeError("ambient (=%s) must be ambient or a quotient" % ambient)
104104
R = ambient.base_ring()
105105
degree = ambient.degree()

0 commit comments

Comments
 (0)