Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
fix some details
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Jul 7, 2020
1 parent 99d9b6c commit 1a1ec14
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/magmas.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,9 +608,9 @@ def inverse(self):
"""
Return the inverse of ``self``.
This an alias for inversion, defined in ``  invert__``.
This an alias for inversion, defined in ``__invert__``.
Element classes should implement ``  invert__`` only.
Element classes should implement ``__invert__`` only.
EXAMPLES::
Expand Down
2 changes: 1 addition & 1 deletion src/sage/rings/number_field/class_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def inverse(self):
sage: ~G(2, a)
Fractional ideal class (2, a^2 + 2*a - 1)
"""
m = AbelianGroupElement.inverse(self)
m = AbelianGroupElement.__invert__(self)
m._value = (~self.ideal()).reduce_equiv()
return m

Expand Down

0 comments on commit 1a1ec14

Please sign in to comment.