Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove check for deprecated attribute _no_generic_basering_coercion #37115

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions src/sage/categories/unital_algebras.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,7 @@ def __init_extra__(self):
0
sage: F(3)
3*B[0]

sage: class Bar(Parent):
....: _no_generic_basering_coercion = True
sage: Bar(category=Algebras(QQ))
doctest:warning...:
DeprecationWarning: the attribute _no_generic_basering_coercion is deprecated, implement _coerce_map_from_base_ring() instead
See https://github.com/sagemath/sage/issues/19225 for details.
<__main__.Bar_with_category object at 0x...>
"""
if getattr(self, '_no_generic_basering_coercion', False):
from sage.misc.superseded import deprecation
deprecation(19225, "the attribute _no_generic_basering_coercion is deprecated, implement _coerce_map_from_base_ring() instead")
return

base_ring = self.base_ring()
if base_ring is self:
# There are rings that are their own base rings. No need to register that.
Expand Down
Loading