Skip to content

Commit

Permalink
src/sage/schemes: Deprecate is_... functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed May 18, 2024
1 parent ffbbea9 commit 2a4565d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sage/schemes/generic/scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def is_Scheme(x):
sage: is_Scheme(X)
True
"""
from sage.misc.superseded import deprecation
deprecation(99999, "the function is_Scheme is deprecated; use 'isinstance(..., Scheme)' or categories instead")
return isinstance(x, Scheme)


Expand Down

0 comments on commit 2a4565d

Please sign in to comment.