File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ from memory_allocator cimport MemoryAllocator
3232from sage.libs.gmp.mpz cimport *
3333from sage.rings.integer_ring import ZZ
3434from sage.rings.integer cimport Integer
35- from sage.rings.ring cimport CommutativeRing
35+ from sage.structure.parent cimport Parent
3636from sage.rings.polynomial.polynomial_integer_dense_flint cimport Polynomial_integer_dense_flint
3737from sage.rings.polynomial.polynomial_ring_constructor import PolynomialRing
3838
@@ -448,7 +448,7 @@ def chromatic_polynomial_with_cache(G, cache=None):
448448 sage: chromatic_polynomial_with_cache( G)
449449 x^ 2 - x
450450 """
451- cdef CommutativeRing R = PolynomialRing(ZZ, " x" , implementation = " FLINT" )
451+ cdef Parent R = PolynomialRing(ZZ, " x" , implementation = " FLINT" )
452452 cdef Polynomial_integer_dense_flint one = R.one()
453453 cdef Polynomial_integer_dense_flint zero = R.zero()
454454 cdef Polynomial_integer_dense_flint x = R.gen()
Original file line number Diff line number Diff line change 6262 True
6363
6464Alternatively we can use the method
65- :meth:`~sage.rings.ring.CommutativeRing .derivation`
65+ :meth:`~sage.categories.commutative_rings.CommutativeRings.ParentMethods .derivation`
6666of the ring `A` to create derivations::
6767
6868 sage: Dx = A.derivation(x); Dx
You can’t perform that action at this time.
0 commit comments