We deprecate is_RealNumber
, is_ComplexNumber
, is_AlgebraicNumber
, is_RealIntervalFieldElement
, ...
git grep 'is_.*Number('
and git grep -E 'is_(Real|Complex).*Element[(]'
only shows a small number of uses.
We replace all uses either by
isinstance
tests with the element class (if the module providing it is imported already) or
isinstance
tests of the parent with an abc defined in sage.rings.abc
See also:
Depends on #32566
CC: @tscrim
Component: basic arithmetic
Issue created by migration from https://trac.sagemath.org/ticket/24525