Skip to content

Commit 15f8a33

Browse files
author
Release Manager
committed
gh-35680: register magic modes for lazy imported interfaces ### 📚 Description Addresses #35246 The lazy imported interfaces are not registered as magic modes. This patch registers them too. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. It should be `[x]` not `[x ]`. --> - [x] The title is concise, informative, and self-explanatory. - [x] 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 accordingly. URL: #35680 Reported by: miguelmarco Reviewer(s): John H. Palmieri
2 parents 6be8082 + 83c053c commit 15f8a33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/repl/interface_magic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def all_iter(cls):
9797
except ImportError:
9898
return
9999
for name, obj in sage.interfaces.all.__dict__.items():
100-
if isinstance(obj, sage.interfaces.interface.Interface):
100+
if isinstance(obj, (sage.interfaces.interface.Interface, sage.misc.lazy_import.LazyImport)):
101101
yield cls(name, obj)
102102

103103
@classmethod

0 commit comments

Comments
 (0)