Skip to content

Commit e3bd5b0

Browse files
author
Matthias Koeppe
committed
Style fixes, 'del lazy_import' split out #37901
1 parent 6ee6675 commit e3bd5b0

File tree

39 files changed

+191
-161
lines changed

39 files changed

+191
-161
lines changed

src/sage/calculus/transforms/all.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
lazy_import("sage.calculus.transforms.fft", ["FastFourierTransform", "FFT"])
44
lazy_import("sage.calculus.transforms.dwt", ["WaveletTransform", "DWT"])
55
from sage.calculus.transforms.dft import IndexedSequence
6+
del lazy_import

src/sage/combinat/designs/all.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343

4444

4545
lazy_import('sage.combinat.designs.incidence_structures', 'IncidenceStructure')
46-
lazy_import('sage.combinat.designs.incidence_structures', 'IncidenceStructure', 'BlockDesign')
46+
lazy_import('sage.combinat.designs.incidence_structures',
47+
'IncidenceStructure', 'BlockDesign')
4748

4849
lazy_import('sage.combinat.designs.incidence_structures',
4950
'IncidenceStructure', as_='Hypergraph')
@@ -52,3 +53,5 @@
5253
['CoveringDesign', 'schonheim', 'trivial_covering_design'])
5354

5455
from sage.combinat.designs import design_catalog as designs
56+
del lazy_import
57+
del install_doc

src/sage/combinat/posets/all.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@
4141
from sage.combinat.posets.lattices import LatticePoset, MeetSemilattice, JoinSemilattice
4242

4343
from sage.combinat.posets.poset_examples import posets, Posets
44+
45+
del install_doc

src/sage/databases/all.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
* CremonaDatabase() - Cremona's tables of elliptic curves and related data.
77
8-
* findstat -- The FindStat database (http://www.findstat.org/).
8+
* findstat -- The FindStat database (https://www.findstat.org/).
99
1010
* JonesDatabase() -- returns the John Jones table of number fields
1111
with bounded ramification and degree <= 6.
@@ -68,15 +68,16 @@
6868
lazy_import('sage.databases.odlyzko', 'zeta_zeros')
6969

7070
from sage.databases.db_modular_polynomials import \
71-
ClassicalModularPolynomialDatabase, \
72-
DedekindEtaModularPolynomialDatabase, \
73-
DedekindEtaModularCorrespondenceDatabase, \
74-
AtkinModularPolynomialDatabase, \
75-
AtkinModularCorrespondenceDatabase
71+
ClassicalModularPolynomialDatabase, \
72+
DedekindEtaModularPolynomialDatabase, \
73+
DedekindEtaModularCorrespondenceDatabase, \
74+
AtkinModularPolynomialDatabase, \
75+
AtkinModularCorrespondenceDatabase
7676

7777
from sage.databases.db_class_polynomials import \
78-
HilbertClassPolynomialDatabase
78+
HilbertClassPolynomialDatabase
7979

8080
lazy_import('sage.databases.cunningham_tables', 'cunningham_prime_factors')
8181

8282
lazy_import('sage.databases.findstat', ['findstat', 'findmap'])
83+
del lazy_import

src/sage/dynamics/arithmetic_dynamics/all.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
from sage.dynamics.arithmetic_dynamics.dynamical_semigroup import DynamicalSemigroup_projective
1111
lazy_import('sage.dynamics.arithmetic_dynamics.wehlerK3', 'WehlerK3Surface')
1212
lazy_import('sage.dynamics.arithmetic_dynamics.wehlerK3', 'random_WehlerK3Surface')
13+
del lazy_import

src/sage/functions/all.py

Lines changed: 51 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -3,91 +3,94 @@
33

44
lazy_import('sage.functions.piecewise', 'piecewise')
55
lazy_import('sage.functions.error', ['erf', 'erfc', 'erfi', 'erfinv',
6-
'fresnel_sin', 'fresnel_cos'])
6+
'fresnel_sin', 'fresnel_cos'])
77

8-
from sage.functions.trig import ( sin, cos, sec, csc, cot, tan,
9-
asin, acos, atan,
10-
acot, acsc, asec,
11-
arcsin, arccos, arctan,
12-
arccot, arccsc, arcsec,
13-
arctan2, atan2)
8+
from sage.functions.trig import (sin, cos, sec, csc, cot, tan,
9+
asin, acos, atan,
10+
acot, acsc, asec,
11+
arcsin, arccos, arctan,
12+
arccot, arccsc, arcsec,
13+
arctan2, atan2)
1414

15-
from sage.functions.hyperbolic import ( tanh, sinh, cosh, coth, sech, csch,
16-
asinh, acosh, atanh, acoth, asech, acsch,
17-
arcsinh, arccosh, arctanh, arccoth, arcsech, arccsch )
15+
from sage.functions.hyperbolic import (tanh, sinh, cosh, coth, sech, csch,
16+
asinh, acosh, atanh, acoth, asech, acsch,
17+
arcsinh, arccosh, arctanh, arccoth, arcsech, arccsch)
1818

19-
reciprocal_trig_functions = {'sec': cos, 'csc': sin, 'cot': tan, 'sech': cosh, 'csch': sinh, 'coth': tanh}
19+
reciprocal_trig_functions = {'sec': cos, 'csc': sin,
20+
'cot': tan, 'sech': cosh, 'csch': sinh, 'coth': tanh}
2021

2122

22-
from sage.functions.other import ( ceil, floor, abs_symbolic, sqrt, real_nth_root,
23-
arg, real_part, real, frac,
24-
factorial, binomial,
25-
imag_part, imag, imaginary, conjugate, cases,
26-
complex_root_of)
23+
from sage.functions.other import (ceil, floor, abs_symbolic, sqrt, real_nth_root,
24+
arg, real_part, real, frac,
25+
factorial, binomial,
26+
imag_part, imag, imaginary, conjugate, cases,
27+
complex_root_of)
2728

28-
from sage.functions.log import (exp, exp_polar, log, ln, polylog, dilog, lambert_w, harmonic_number)
29+
from sage.functions.log import (exp, exp_polar, log, ln,
30+
polylog, dilog, lambert_w, harmonic_number)
2931

3032
from sage.functions.transcendental import (zeta, zetaderiv, zeta_symmetric, hurwitz_zeta,
31-
dickman_rho, stieltjes)
33+
dickman_rho, stieltjes)
3234

3335
from sage.functions.bessel import (bessel_I, bessel_J, bessel_K, bessel_Y,
34-
Bessel, struve_H, struve_L, hankel1, hankel2,
36+
Bessel, struve_H, struve_L, hankel1, hankel2,
3537
spherical_bessel_J, spherical_bessel_Y,
3638
spherical_hankel1, spherical_hankel2)
3739

3840
from sage.functions.special import (spherical_harmonic, elliptic_e,
39-
elliptic_f, elliptic_ec, elliptic_eu,
40-
elliptic_kc, elliptic_pi, elliptic_j)
41+
elliptic_f, elliptic_ec, elliptic_eu,
42+
elliptic_kc, elliptic_pi, elliptic_j)
4143

4244
from sage.functions.jacobi import (jacobi, inverse_jacobi, jacobi_nd, jacobi_ns, jacobi_nc,
43-
jacobi_dn, jacobi_ds, jacobi_dc, jacobi_sn, jacobi_sd,
44-
jacobi_sc, jacobi_cn, jacobi_cd, jacobi_cs, jacobi_am,
45-
inverse_jacobi_nd, inverse_jacobi_ns, inverse_jacobi_nc,
46-
inverse_jacobi_dn, inverse_jacobi_ds, inverse_jacobi_dc,
47-
inverse_jacobi_sn, inverse_jacobi_sd, inverse_jacobi_sc,
48-
inverse_jacobi_cn, inverse_jacobi_cd, inverse_jacobi_cs)
45+
jacobi_dn, jacobi_ds, jacobi_dc, jacobi_sn, jacobi_sd,
46+
jacobi_sc, jacobi_cn, jacobi_cd, jacobi_cs, jacobi_am,
47+
inverse_jacobi_nd, inverse_jacobi_ns, inverse_jacobi_nc,
48+
inverse_jacobi_dn, inverse_jacobi_ds, inverse_jacobi_dc,
49+
inverse_jacobi_sn, inverse_jacobi_sd, inverse_jacobi_sc,
50+
inverse_jacobi_cn, inverse_jacobi_cd, inverse_jacobi_cs)
4951

5052
from sage.functions.orthogonal_polys import (chebyshev_T,
51-
chebyshev_U,
52-
gen_laguerre,
53-
gen_legendre_P,
54-
gen_legendre_Q,
55-
hermite,
56-
jacobi_P,
57-
laguerre,
58-
legendre_P,
59-
legendre_Q,
60-
ultraspherical,
61-
gegenbauer,
62-
krawtchouk,
63-
meixner,
64-
hahn)
53+
chebyshev_U,
54+
gen_laguerre,
55+
gen_legendre_P,
56+
gen_legendre_Q,
57+
hermite,
58+
jacobi_P,
59+
laguerre,
60+
legendre_P,
61+
legendre_Q,
62+
ultraspherical,
63+
gegenbauer,
64+
krawtchouk,
65+
meixner,
66+
hahn)
6567

6668
from sage.functions.spike_function import spike_function
6769

6870
from sage.functions.prime_pi import legendre_phi, partial_sieve_function, prime_pi
6971

7072
from sage.functions.wigner import (wigner_3j, clebsch_gordan, racah, wigner_6j,
71-
wigner_9j, gaunt)
73+
wigner_9j, gaunt)
7274

7375
from sage.functions.generalized import (dirac_delta, heaviside, unit_step, sgn, sign,
74-
kronecker_delta)
76+
kronecker_delta)
7577

7678
from sage.functions.min_max import max_symbolic, min_symbolic
7779

7880
from sage.functions.airy import airy_ai, airy_ai_prime, airy_bi, airy_bi_prime
7981

8082
from sage.functions.exp_integral import (exp_integral_e, exp_integral_e1, log_integral, li, Li,
81-
log_integral_offset,
82-
sin_integral, cos_integral, Si, Ci,
83-
sinh_integral, cosh_integral, Shi, Chi,
84-
exponential_integral_1, Ei, exp_integral_ei)
83+
log_integral_offset,
84+
sin_integral, cos_integral, Si, Ci,
85+
sinh_integral, cosh_integral, Shi, Chi,
86+
exponential_integral_1, Ei, exp_integral_ei)
8587

8688
from sage.functions.hypergeometric import hypergeometric, hypergeometric_M, hypergeometric_U
8789

8890
from sage.functions.gamma import (gamma, psi, beta, log_gamma,
89-
gamma_inc, gamma_inc_lower)
91+
gamma_inc, gamma_inc_lower)
9092

9193
Γ = gamma
9294
ψ = psi
9395
ζ = zeta
96+
del lazy_import

src/sage/graphs/all.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
lazy_import("sage.graphs.graph_generators", "graphs")
55
lazy_import("sage.graphs.digraph_generators", "digraphs")
66
lazy_import("sage.graphs.hypergraph_generators", "hypergraphs")
7-
lazy_import("sage.graphs.graph_database", ["GraphDatabase", "GenericGraphQuery", "GraphQuery"])
7+
lazy_import("sage.graphs.graph_database", [
8+
"GraphDatabase", "GenericGraphQuery", "GraphQuery"])
89
from sage.graphs.graph import Graph
910
from sage.graphs.digraph import DiGraph
1011
from sage.graphs.bipartite_graph import BipartiteGraph
@@ -37,3 +38,4 @@
3738
...
3839
NameError: name 'clique_number' is not defined
3940
"""
41+
del lazy_import

src/sage/groups/abelian_gps/all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
all.py -- export of abelian groups to Sage
33
"""
44

5-
#*****************************************************************************
5+
# *****************************************************************************
66
#
77
# Sage: Open Source Mathematical Software
88
#

src/sage/groups/perm_gps/all.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
from sage.groups.perm_gps.permgroup_named import (SymmetricGroup, AlternatingGroup,
2-
DihedralGroup, SplitMetacyclicGroup,
3-
SemidihedralGroup, CyclicPermutationGroup,
4-
DiCyclicGroup, TransitiveGroup,
5-
PGL, PSL, PSp, PSU, PGU,
6-
MathieuGroup, KleinFourGroup, QuaternionGroup,
7-
PrimitiveGroup, PrimitiveGroups,
8-
SuzukiGroup, TransitiveGroups,
9-
GeneralDihedralGroup, SmallPermutationGroup)
2+
DihedralGroup, SplitMetacyclicGroup,
3+
SemidihedralGroup, CyclicPermutationGroup,
4+
DiCyclicGroup, TransitiveGroup,
5+
PGL, PSL, PSp, PSU, PGU,
6+
MathieuGroup, KleinFourGroup, QuaternionGroup,
7+
PrimitiveGroup, PrimitiveGroups,
8+
SuzukiGroup, TransitiveGroups,
9+
GeneralDihedralGroup, SmallPermutationGroup)
1010

1111
from sage.groups.perm_gps.permgroup import PermutationGroup, PermutationGroup_generic, PermutationGroup_subgroup, direct_product_permgroups
1212

1313
from sage.groups.perm_gps.constructor import PermutationGroupElement
1414

1515
from sage.groups.perm_gps.permgroup_morphism import (PermutationGroupMorphism as PermutationGroupMap,
16-
PermutationGroupMorphism_im_gens,
17-
PermutationGroupMorphism_id)
16+
PermutationGroupMorphism_im_gens,
17+
PermutationGroupMorphism_id)
1818
PermutationGroupMorphism = PermutationGroupMorphism_im_gens
1919

2020
from sage.groups.perm_gps.cubegroup import CubeGroup, RubiksCube

src/sage/interacts/all.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@
2323
from sage.interacts import fractals
2424
from sage.interacts import algebra
2525
lazy_import('sage.interacts.library', 'demo')
26+
del lazy_import

0 commit comments

Comments
 (0)