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

Commit e7af9f3

Browse files
author
Matthias Koeppe
committed
sage.manifolds, sage.tensor: Remove imports from sage.arith.all, sage.rings.all
1 parent 12be2d9 commit e7af9f3

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/sage/manifolds/utilities.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
from sage.functions.other import abs_symbolic
3636
from sage.misc.functional import sqrt
3737
from sage.functions.trig import cos, sin
38-
from sage.rings.all import Rational
38+
from sage.rings.rational import Rational
39+
3940

4041
class SimplifySqrtReal(ExpressionTreeWalker):
4142
r"""

src/sage/tensor/modules/comp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5446,7 +5446,7 @@ def interior_product(self, other):
54465446
True
54475447
54485448
"""
5449-
from sage.arith.all import factorial
5449+
from sage.arith.misc import factorial
54505450
# Sanity checks:
54515451
if not isinstance(other, CompFullyAntiSym):
54525452
raise TypeError("{} is not a fully antisymmetric ".format(other) +

src/sage/tensor/modules/ext_pow_free_module.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def __init__(self, fmodule, degree, name=None, latex_name=None):
236236
sage: TestSuite(A).run()
237237
238238
"""
239-
from sage.arith.all import binomial
239+
from sage.arith.misc import binomial
240240
from sage.typeset.unicode_characters import unicode_bigwedge
241241
self._fmodule = fmodule
242242
self._degree = ZZ(degree)
@@ -631,7 +631,7 @@ def __init__(self, fmodule, degree, name=None, latex_name=None):
631631
sage: TestSuite(A).run()
632632
633633
"""
634-
from sage.arith.all import binomial
634+
from sage.arith.misc import binomial
635635
from sage.typeset.unicode_characters import unicode_bigwedge
636636
self._fmodule = fmodule
637637
self._degree = ZZ(degree)

0 commit comments

Comments
 (0)