From 6b1c6747ce6911ea824d9aea2c6cb2339b7d0d21 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 18 Dec 2022 00:26:48 -0800 Subject: [PATCH] Fix imports --- src/sage/combinat/parallelogram_polyomino.py | 2 +- src/sage/combinat/sine_gordon.py | 6 +++--- src/sage/interfaces/tides.py | 4 ++-- src/sage/modular/hypergeometric_motive.py | 2 +- src/sage/plot/plot3d/plot3d.py | 2 +- src/sage/quadratic_forms/special_values.py | 2 +- src/sage/rings/polynomial/binary_form_reduce.py | 2 +- src/sage/sandpiles/sandpile.py | 2 +- src/sage/schemes/affine/affine_space.py | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/sage/combinat/parallelogram_polyomino.py b/src/sage/combinat/parallelogram_polyomino.py index dca652a3eb1..fde2af5a361 100644 --- a/src/sage/combinat/parallelogram_polyomino.py +++ b/src/sage/combinat/parallelogram_polyomino.py @@ -40,7 +40,7 @@ from sage.combinat.combinat import catalan_number from sage.combinat.combinatorial_map import combinatorial_map from sage.misc.lazy_import import lazy_import -lazy_import("sage.functions.trig", "cos", "sin") +lazy_import("sage.functions.trig", ["cos", "sin"]) from sage.misc.functional import sqrt from sage.misc.lazy_import import lazy_import diff --git a/src/sage/combinat/sine_gordon.py b/src/sage/combinat/sine_gordon.py index 63e34c3b4e0..54c200b6531 100644 --- a/src/sage/combinat/sine_gordon.py +++ b/src/sage/combinat/sine_gordon.py @@ -47,7 +47,7 @@ from sage.rings.real_mpfr import RR from sage.rings.semirings.non_negative_integer_semiring import NN from sage.misc.lazy_import import lazy_import -lazy_import("sage.functions.trig", "cos", "sin") +lazy_import("sage.functions.trig", ["cos", "sin"]) lazy_import("sage.plot.plot", "parametric_plot") lazy_import("sage.plot.graphics", "Graphics") lazy_import("sage.plot.polygon", "polygon2d") @@ -55,12 +55,12 @@ lazy_import("sage.plot.bezier_path", "bezier_path") lazy_import("sage.plot.point", "point") lazy_import("sage.plot.line", "line") -lazy_import("sage.symbolic.constants", "pi", "I") +lazy_import("sage.symbolic.constants", ["pi", "I"]) lazy_import("sage.functions.log", "exp") lazy_import("sage.functions.other", "ceil") from sage.misc.flatten import flatten lazy_import("sage.symbolic.ring", "SR") -lazy_import("sage.functions.other", "real_part", "imag_part") +lazy_import("sage.functions.other", ["real_part", "imag_part"]) from sage.misc.cachefunc import cached_method diff --git a/src/sage/interfaces/tides.py b/src/sage/interfaces/tides.py index 2e90eeb1a44..96d812b7526 100644 --- a/src/sage/interfaces/tides.py +++ b/src/sage/interfaces/tides.py @@ -46,8 +46,8 @@ from sage.misc.flatten import flatten from sage.ext.fast_callable import fast_callable from sage.rings.semirings.non_negative_integer_semiring import NN -lazy_import("sage.functions.log", "log", "exp") -lazy_import("sage.functions.other", "floor", "ceil") +lazy_import("sage.functions.log", ["log", "exp"]) +lazy_import("sage.functions.other", ["floor", "ceil"]) from sage.misc.functional import sqrt diff --git a/src/sage/modular/hypergeometric_motive.py b/src/sage/modular/hypergeometric_motive.py index ca194b3909b..e121172acbe 100644 --- a/src/sage/modular/hypergeometric_motive.py +++ b/src/sage/modular/hypergeometric_motive.py @@ -67,7 +67,7 @@ from sage.misc.lazy_import import lazy_import lazy_import("sage.functions.generalized", "sgn") lazy_import("sage.functions.log", "log") -lazy_import("sage.functions.other", "floor", "ceil") +lazy_import("sage.functions.other", ["floor", "ceil"]) from sage.misc.cachefunc import cached_method from sage.misc.functional import cyclotomic_polynomial from sage.misc.misc_c import prod diff --git a/src/sage/plot/plot3d/plot3d.py b/src/sage/plot/plot3d/plot3d.py index 3aa99e168ee..f17347754a2 100644 --- a/src/sage/plot/plot3d/plot3d.py +++ b/src/sage/plot/plot3d/plot3d.py @@ -221,7 +221,7 @@ def f(x,y): return math.exp(x/5)*math.cos(y) from .texture import Texture from sage.misc.lazy_import import lazy_import -lazy_import("sage.functions.trig", "cos", "sin") +lazy_import("sage.functions.trig", ["cos", "sin"]) from sage.misc.sageinspect import sage_getargspec, is_function_or_cython_function diff --git a/src/sage/quadratic_forms/special_values.py b/src/sage/quadratic_forms/special_values.py index 7785a9183a1..5532d239849 100644 --- a/src/sage/quadratic_forms/special_values.py +++ b/src/sage/quadratic_forms/special_values.py @@ -16,7 +16,7 @@ from sage.rings.rational_field import QQ import sage.rings.abc from sage.misc.lazy_import import lazy_import -lazy_import("sage.symbolic.constants", "pi", "I") +lazy_import("sage.symbolic.constants", ["pi", "I"]) # ---------------- The Gamma Function ------------------ diff --git a/src/sage/rings/polynomial/binary_form_reduce.py b/src/sage/rings/polynomial/binary_form_reduce.py index e37469892e3..82c5921f954 100644 --- a/src/sage/rings/polynomial/binary_form_reduce.py +++ b/src/sage/rings/polynomial/binary_form_reduce.py @@ -28,7 +28,7 @@ from sage.misc.lazy_import import lazy_import lazy_import("sage.calculus.functions", "jacobian") -lazy_import("sage.functions.hyperbolic", "cosh", "sinh") +lazy_import("sage.functions.hyperbolic", ["cosh", "sinh"]) lazy_import("sage.functions.log", "exp") from sage.matrix.constructor import matrix from sage.misc.misc_c import prod diff --git a/src/sage/sandpiles/sandpile.py b/src/sage/sandpiles/sandpile.py index 01c96f7ab09..996b06cba5b 100644 --- a/src/sage/sandpiles/sandpile.py +++ b/src/sage/sandpiles/sandpile.py @@ -348,7 +348,7 @@ from sage.rings.integer_ring import ZZ from sage.rings.polynomial.polynomial_ring_constructor import PolynomialRing from sage.rings.rational_field import QQ -lazy_import("sage.symbolic.constants", "I", "pi") +lazy_import("sage.symbolic.constants", ["I", "pi"]) lazy_import("sage.symbolic.ring", "SR") from sage.features.four_ti_2 import FourTi2Executable lazy_import("sage.plot.colors", "rainbow") diff --git a/src/sage/schemes/affine/affine_space.py b/src/sage/schemes/affine/affine_space.py index 3d78393b496..84f1ea661c2 100644 --- a/src/sage/schemes/affine/affine_space.py +++ b/src/sage/schemes/affine/affine_space.py @@ -11,7 +11,7 @@ # **************************************************************************** from sage.misc.lazy_import import lazy_import -lazy_import("sage.functions.orthogonal_polys", "chebyshev_T", "chebyshev_U") +lazy_import("sage.functions.orthogonal_polys", ["chebyshev_T", "chebyshev_U"]) from sage.rings.integer import Integer from sage.rings.integer_ring import ZZ from sage.rings.polynomial.polynomial_ring_constructor import PolynomialRing