Skip to content

Commit

Permalink
gh-35680: register magic modes for lazy imported interfaces
Browse files Browse the repository at this point in the history
    
### 📚 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
  • Loading branch information
Release Manager committed Jun 3, 2023
2 parents 6be8082 + 83c053c commit 15f8a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/repl/interface_magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def all_iter(cls):
except ImportError:
return
for name, obj in sage.interfaces.all.__dict__.items():
if isinstance(obj, sage.interfaces.interface.Interface):
if isinstance(obj, (sage.interfaces.interface.Interface, sage.misc.lazy_import.LazyImport)):
yield cls(name, obj)

@classmethod
Expand Down

0 comments on commit 15f8a33

Please sign in to comment.