Skip to content

Commit 252220c

Browse files
committed
trying Travis suggestions
1 parent 7adafd2 commit 252220c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/sage/rings/lazy_series.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
# https://www.gnu.org/licenses/
8888
# ****************************************************************************
8989

90-
from sage.structure.element import Element, parent
90+
from sage.structure.element import Element, parent, ModuleElement, RingElement
9191
from sage.structure.richcmp import op_EQ, op_NE
9292
from sage.functions.other import factorial
9393
from sage.arith.power import generic_power
@@ -114,7 +114,8 @@
114114
Stream_dirichlet_invert
115115
)
116116

117-
class LazyModuleElement(Element):
117+
118+
class LazyModuleElement(ModuleElement):
118119
r"""
119120
A lazy sequence with a module structure given by term-wise
120121
addition and scalar multiplication.
@@ -858,7 +859,6 @@ def _unicode_art_(self):
858859
return UnicodeArt('Uninitialized Lazy Laurent Series')
859860
return self._format_series(unicode_art, True)
860861

861-
862862
def change_ring(self, ring):
863863
r"""
864864
Return ``self`` with coefficients converted to elements of ``ring``.
@@ -1971,10 +1971,10 @@ def sqrt(self):
19711971
sage: f*f - Z
19721972
O(1/(8^s))
19731973
"""
1974-
return self ** (1/ZZ(2))
1974+
return self ** (~ZZ(2))
19751975

19761976

1977-
class LazyCauchyProductSeries(LazyModuleElement):
1977+
class LazyCauchyProductSeries(RingElement, LazyModuleElement):
19781978
r"""
19791979
A class for series where multiplication is the Cauchy product.
19801980

0 commit comments

Comments
 (0)