diff --git a/src/sage/rings/homset.py b/src/sage/rings/homset.py index b2f24a3800a..59131f326e2 100644 --- a/src/sage/rings/homset.py +++ b/src/sage/rings/homset.py @@ -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)