Skip to content

Commit

Permalink
Sort imports, separate lazy_import
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Jun 3, 2024
1 parent 2a3f2bf commit f52c4fe
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
12 changes: 7 additions & 5 deletions src/sage/schemes/hyperelliptic_curves/hyperelliptic_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,18 @@
# http://www.gnu.org/licenses/
#*****************************************************************************

from sage.rings.polynomial.polynomial_ring_constructor import PolynomialRing
import sage.schemes.curves.projective_curve as plane_curve

from sage.misc.lazy_import import lazy_import
from sage.rings.big_oh import O
from sage.rings.power_series_ring import PowerSeriesRing
from sage.rings.laurent_series_ring import LaurentSeriesRing
from sage.rings.polynomial.polynomial_ring_constructor import PolynomialRing
from sage.rings.power_series_ring import PowerSeriesRing
from sage.rings.real_mpfr import RR
from sage.misc.lazy_import import lazy_import
lazy_import("sage.functions.all", "log")
from sage.structure.category_object import normalize_names

import sage.schemes.curves.projective_curve as plane_curve
lazy_import("sage.functions.all", "log")


def is_HyperellipticCurve(C):
"""
Expand Down
3 changes: 2 additions & 1 deletion src/sage/schemes/toric/toric_subscheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@
# ****************************************************************************

from sage.misc.lazy_import import lazy_import
lazy_import("sage.calculus.functions", "jacobian")
from sage.rings.integer_ring import ZZ
from sage.schemes.generic.algebraic_scheme import AlgebraicScheme_subscheme

lazy_import("sage.calculus.functions", "jacobian")


class AlgebraicScheme_subscheme_toric(AlgebraicScheme_subscheme):
r"""
Expand Down
19 changes: 11 additions & 8 deletions src/sage/schemes/toric/variety.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,26 +304,29 @@

import sys

from sage.misc.lazy_import import lazy_import
lazy_import("sage.functions.all", "factorial")
import sage.geometry.abc

from sage.categories.fields import Fields
from sage.geometry.cone import Cone
from sage.geometry.fan import Fan
from sage.misc.cachefunc import cached_method
from sage.misc.latex import latex
from sage.misc.lazy_import import lazy_import
from sage.misc.misc_c import prod
from sage.misc.cachefunc import cached_method
from sage.structure.unique_representation import UniqueRepresentation
from sage.modules.free_module_element import vector
from sage.rings.polynomial.polynomial_ring_constructor import PolynomialRing
from sage.rings.integer_ring import ZZ
from sage.rings.rational_field import QQ
from sage.rings.quotient_ring_element import QuotientRingElement
from sage.rings.polynomial.polynomial_ring_constructor import PolynomialRing
from sage.rings.quotient_ring import QuotientRing_generic
from sage.rings.quotient_ring_element import QuotientRingElement
from sage.rings.rational_field import QQ
from sage.schemes.affine.affine_space import AffineSpace
from sage.schemes.generic.ambient_space import AmbientSpace
from sage.schemes.toric.homset import SchemeHomset_points_toric_field
from sage.structure.category_object import certify_names
from sage.categories.fields import Fields
from sage.structure.unique_representation import UniqueRepresentation

lazy_import("sage.functions.all", "factorial")

_Fields = Fields()


Expand Down

0 comments on commit f52c4fe

Please sign in to comment.