From b3d322ee8e98eb666ddc18fe9d94973202a70b4a Mon Sep 17 00:00:00 2001 From: miguelmarco Date: Sat, 27 May 2023 00:45:24 +0200 Subject: [PATCH] Update src/sage/algebras/commutative_dga.py Co-authored-by: Travis Scrimshaw --- src/sage/algebras/commutative_dga.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/sage/algebras/commutative_dga.py b/src/sage/algebras/commutative_dga.py index f1148024ce2..43fbf65c29d 100644 --- a/src/sage/algebras/commutative_dga.py +++ b/src/sage/algebras/commutative_dga.py @@ -3896,10 +3896,11 @@ class CohomologyClass(SageObject, CachedRepresentation): sage: CohomologyClass(x^2+2*y*z, A) [2*y*z + x^2] - In order for the cache to not confuse objects with the same representation, - we can pass the parent of the representative as a parameter. - TESTS:: + TESTS: + + In order for the cache to not confuse objects with the same representation, + we can pass the parent of the representative as a parameter:: sage: A. = GradedCommutativeAlgebra(QQ) sage: B1 = A.cdg_algebra({e5:e1*e2,e6:e3*e4})