forked from sagemath/sage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sagemathgh-37223: Remove invariants commands in global namespace
This PR removes the depreciated invariants from sagemath#28064 (2019). It's been long enough and we should declutter the tab-autocomplete from these very specific functions. As an aside, I'm not sure why we have: ```py from . import monsky_washnitzer ``` Instead of importing objects from this module, but I have not worked with this myself so am loathed to modify this without further input from the community. URL: sagemath#37223 Reported by: Giacomo Pope Reviewer(s): Frédéric Chapoton
- Loading branch information
Showing
2 changed files
with
1 addition
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,4 @@ | ||
""" | ||
Tests for deprecations of imports in global namespace from :trac:`28064`:: | ||
sage: igusa_clebsch_invariants | ||
doctest:warning...: | ||
DeprecationWarning: | ||
Importing igusa_clebsch_invariants from here is deprecated; | ||
please use "from sage.schemes.hyperelliptic_curves.invariants import igusa_clebsch_invariants" instead. | ||
See https://github.com/sagemath/sage/issues/28064 for details. | ||
... | ||
sage: absolute_igusa_invariants_kohel | ||
doctest:warning...: | ||
DeprecationWarning: | ||
Importing absolute_igusa_invariants_kohel from here is deprecated; | ||
please use "from sage.schemes.hyperelliptic_curves.invariants import absolute_igusa_invariants_kohel" instead. | ||
See https://github.com/sagemath/sage/issues/28064 for details. | ||
... | ||
sage: absolute_igusa_invariants_wamelen | ||
doctest:warning...: | ||
DeprecationWarning: | ||
Importing absolute_igusa_invariants_wamelen from here is deprecated; | ||
please use "from sage.schemes.hyperelliptic_curves.invariants import absolute_igusa_invariants_wamelen" instead. | ||
See https://github.com/sagemath/sage/issues/28064 for details. | ||
... | ||
sage: clebsch_invariants | ||
doctest:warning...: | ||
DeprecationWarning: | ||
Importing clebsch_invariants from here is deprecated; | ||
please use "from sage.schemes.hyperelliptic_curves.invariants import clebsch_invariants" instead. | ||
See https://github.com/sagemath/sage/issues/28064 for details. | ||
... | ||
""" | ||
from sage.misc.lazy_import import lazy_import | ||
|
||
from .constructor import HyperellipticCurve | ||
from .kummer_surface import KummerSurface | ||
lazy_import('sage.schemes.hyperelliptic_curves.invariants', | ||
['igusa_clebsch_invariants', 'absolute_igusa_invariants_kohel', | ||
'absolute_igusa_invariants_wamelen', 'clebsch_invariants'], | ||
deprecation=28064) | ||
from .mestre import (Mestre_conic, HyperellipticCurve_from_invariants) | ||
from . import monsky_washnitzer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters