Skip to content

Commit 69df1ef

Browse files
Matthias Koeppedimpase
authored andcommitted
Remove last import from 'sage.symbolic.all', activate relint rule for it
1 parent 2fb5ca1 commit 69df1ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/.relint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
namespace package. Type import_statements("SOME_IDENTIFIER") to find a more specific import,
5050
or use 'sage --fiximports' to fix automatically in the source file.
5151
# Keep in sync with SAGE_ROOT/src/sage/misc/replace_dot_all.py
52-
pattern: 'from\s+sage(|[.](arith|categories|combinat|crypto|databases|data_structures|dynamics|ext|game_theory|games|graphs|groups|interfaces|manifolds|matrix|matroids|misc|modules|monoids|numerical|probability|quadratic_forms|quivers|rings|sat|schemes|sets|stats|tensor)[a-z0-9_.]*|[.]libs)[.]all\s+import'
52+
pattern: 'from\s+sage(|[.](arith|categories|combinat|crypto|databases|data_structures|dynamics|ext|game_theory|games|graphs|groups|interfaces|manifolds|matrix|matroids|misc|modules|monoids|numerical|probability|quadratic_forms|quivers|rings|sat|schemes|sets|stats|symbolic|tensor)[a-z0-9_.]*|[.]libs)[.]all\s+import'
5353
# imports from .all are allowed in all.py; also allow in some modules that need sage.all
5454
filePattern: '(.*/|)(?!(all|benchmark|dev_tools|parsing|sage_eval))[^/.]*[.](py|pyx|pxi)$'
5555

src/sage/modular/modform_hecketriangle/element.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def lseries(self, num_prec=None, max_imaginary_part=0, max_asymp_coeffs=40):
285285
-23.9781792831...
286286
"""
287287
from sage.rings.integer_ring import ZZ
288-
from sage.symbolic.all import pi
288+
from sage.symbolic.constants import pi
289289
from sage.misc.functional import sqrt
290290
from sage.lfunctions.dokchitser import Dokchitser
291291

0 commit comments

Comments
 (0)