Skip to content

Commit

Permalink
Fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Apr 7, 2023
1 parent fb8c089 commit 978fe20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/sage/categories/primer.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,12 +525,12 @@ class implements:
sage: G = GL(2, ZZ) # optional - sage.modules
sage: type(G) # optional - sage.modules
<class 'sage.groups.matrix_gps.linear_gap.LinearMatrixGroup_gap_with_category'>
<class 'sage.groups.matrix_gps.linear.LinearMatrixGroup_gap_with_category'>
Here is a piece of the hierarchy of classes above it::
sage: for cls in G.__class__.mro(): print(cls) # optional - sage.modules
<class 'sage.groups.matrix_gps.linear_gap.LinearMatrixGroup_gap_with_category'>
<class 'sage.groups.matrix_gps.linear.LinearMatrixGroup_gap_with_category'>
...
<class 'sage.categories.groups.Groups.parent_class'>
<class 'sage.categories.monoids.Monoids.parent_class'>
Expand Down
2 changes: 1 addition & 1 deletion src/sage/categories/sets_cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2925,7 +2925,7 @@ def inject_shorthands(self, shorthands=None, verbose=True):
sage: e == S.e(), h == S.h(), m == S.m(), p == SQ.p(), s == SQ.s() # optional - sage.combinat
(True, True, True, True, True)
"""
from sage.misc.globals import inject_variable
from sage.misc.misc import inject_variable
if shorthands == 'all':
shorthands = getattr(self, '_shorthands_all', None)
if shorthands is None:
Expand Down

0 comments on commit 978fe20

Please sign in to comment.