Skip to content

Commit

Permalink
src/sage/rings/homset.py: Deprecate is_RingHomset
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed May 2, 2024
1 parent 39dbb4d commit 3c3f1fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sage/rings/homset.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ def is_RingHomset(H):
sage: is_RH(Hom(FreeModule(ZZ,1), FreeModule(QQ,1))) # needs sage.modules
False
"""
from sage.misc.superseded import deprecation
deprecation(37922, "the function is_RingHomset is deprecated; use 'isinstance(..., RingHomset_generic)' instead")
return isinstance(H, RingHomset_generic)


Expand Down

0 comments on commit 3c3f1fc

Please sign in to comment.