Skip to content

Commit da885cf

Browse files
author
Release Manager
committed
sagemathgh-38095: `src/sage/algebras/steenrod/all.py`: Use lazy_import, remove deprecated global import <!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes sagemath#12345". --> - The change to use `lazy_import` was cherry-picked from sagemath#37900 - The global import was deprecated in sagemath#32647 (2021) ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [ ] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#38095 Reported by: Matthias Köppe Reviewer(s): Kwankyu Lee
2 parents dfb90d0 + d78a132 commit da885cf

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/sage/algebras/steenrod/all.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
# sage_setup: distribution = sagemath-combinat
12
"""
23
The Steenrod algebra
34
"""
4-
from sage.algebras.steenrod.steenrod_algebra import SteenrodAlgebra, Sq
55
from sage.misc.lazy_import import lazy_import
6-
lazy_import('sage.algebras.steenrod.steenrod_algebra_bases',
7-
'steenrod_algebra_basis',
8-
deprecation=(32647, 'removed from namespace'))
6+
lazy_import('sage.algebras.steenrod.steenrod_algebra', ['SteenrodAlgebra', 'Sq'])
7+
del lazy_import

src/sage/misc/sageinspect.py

+2
Original file line numberDiff line numberDiff line change
@@ -1280,6 +1280,7 @@ def sage_getfile(obj):
12801280
sage: from sage.misc.sageinspect import sage_getfile
12811281
sage: sage_getfile(sage.rings.rational)
12821282
'...sage/rings/rational.pyx'
1283+
sage: from sage.algebras.steenrod.steenrod_algebra import Sq # needs sage.combinat sage.modules
12831284
sage: sage_getfile(Sq) # needs sage.combinat sage.modules
12841285
'...sage/algebras/steenrod/steenrod_algebra.py'
12851286
sage: sage_getfile(x) # needs sage.symbolic
@@ -1358,6 +1359,7 @@ def sage_getfile_relative(obj):
13581359
sage: from sage.misc.sageinspect import sage_getfile_relative
13591360
sage: sage_getfile_relative(sage.rings.rational)
13601361
'sage/rings/rational.pyx'
1362+
sage: from sage.algebras.steenrod.steenrod_algebra import Sq # needs sage.combinat sage.modules
13611363
sage: sage_getfile_relative(Sq) # needs sage.combinat sage.modules
13621364
'sage/algebras/steenrod/steenrod_algebra.py'
13631365
sage: sage_getfile_relative(x) # needs sage.symbolic

0 commit comments

Comments
 (0)