From d534fb6e84b0cd5b9613f84704a2f711978dc485 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Tue, 31 Jan 2023 22:17:02 -0800 Subject: [PATCH] src/sage/categories: Add # optional --- src/sage/categories/monoids.py | 2 +- src/sage/categories/poor_man_map.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sage/categories/monoids.py b/src/sage/categories/monoids.py index dc548a72e66..18d0717c0f5 100644 --- a/src/sage/categories/monoids.py +++ b/src/sage/categories/monoids.py @@ -379,7 +379,7 @@ def inverse(self): EXAMPLES:: - sage: AA(sqrt(~2)).inverse() + sage: AA(sqrt(~2)).inverse() # optional - sage.symbolic, sage.rings.number_field 1.414213562373095? """ # Nota Bene: Element classes should implement ``__invert__`` only. diff --git a/src/sage/categories/poor_man_map.py b/src/sage/categories/poor_man_map.py index d0fca4b658d..b7d7aa297e9 100644 --- a/src/sage/categories/poor_man_map.py +++ b/src/sage/categories/poor_man_map.py @@ -266,8 +266,8 @@ def _sympy_(self): EXAMPLES:: sage: from sage.categories.poor_man_map import PoorManMap - sage: h = PoorManMap(sin, domain=RR, codomain=RR) - sage: h._sympy_() + sage: h = PoorManMap(sin, domain=RR, codomain=RR) # optional - sage.symbolic + sage: h._sympy_() # optional - sage.symbolic sin """ from sympy import Lambda, sympify