diff --git a/src/sage/categories/magmas.py b/src/sage/categories/magmas.py index 7631a4fcd37..9dbf5a25f25 100644 --- a/src/sage/categories/magmas.py +++ b/src/sage/categories/magmas.py @@ -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:: diff --git a/src/sage/rings/number_field/class_group.py b/src/sage/rings/number_field/class_group.py index 46d0ca8c9d3..04e1b06983a 100644 --- a/src/sage/rings/number_field/class_group.py +++ b/src/sage/rings/number_field/class_group.py @@ -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