Skip to content

Commit

Permalink
Deprecate is_SchemeTopologicalPoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Jun 27, 2024
1 parent b7dd28d commit 4c80be2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sage/schemes/generic/point.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ def _repr_(self):
########################################################

def is_SchemeTopologicalPoint(x):
from sage.misc.superseded import deprecation
deprecation(38296,

Check warning on line 77 in src/sage/schemes/generic/point.py

View check run for this annotation

Codecov / codecov/patch

src/sage/schemes/generic/point.py#L76-L77

Added lines #L76 - L77 were not covered by tests
"The function is_SchemeTopologicalPoint is deprecated; "
"use 'isinstance(..., SchemeTopologicalPoint)' instead.")
return isinstance(x, SchemeTopologicalPoint)

class SchemeTopologicalPoint(SchemePoint):
Expand Down

0 comments on commit 4c80be2

Please sign in to comment.