remove type:ignore from scipy imports (done at pyproject.toml level)

This commit is contained in:
Jan Petykiewicz 2024-07-29 00:27:59 -07:00
parent ca94ad1b25
commit d5fca741d1
7 changed files with 11 additions and 11 deletions

View File

@ -5,8 +5,8 @@ from typing import Callable
import numpy
from numpy.typing import NDArray, ArrayLike
from numpy.linalg import norm
from scipy import sparse # type: ignore
import scipy.sparse.linalg as spalg # type: ignore
from scipy import sparse
import scipy.sparse.linalg as spalg
def power_iteration(

View File

@ -100,10 +100,10 @@ import numpy
from numpy import pi, real, trace
from numpy.fft import fftfreq
from numpy.typing import NDArray, ArrayLike
import scipy # type: ignore
import scipy.optimize # type: ignore
from scipy.linalg import norm # type: ignore
import scipy.sparse.linalg as spalg # type: ignore
import scipy
import scipy.optimize
from scipy.linalg import norm
import scipy.sparse.linalg as spalg
from ..fdmath import fdfield_t, cfdfield_t

View File

@ -28,7 +28,7 @@ The following operators are included:
"""
import numpy
import scipy.sparse as sparse # type: ignore
from scipy import sparse
from ..fdmath import vec, dx_lists_t, vfdfield_t, vcfdfield_t
from ..fdmath.operators import shift_with_mirror, shift_circ, curl_forward, curl_back

View File

@ -8,7 +8,7 @@ import logging
import numpy
from numpy.typing import ArrayLike, NDArray
from numpy.linalg import norm
import scipy.sparse.linalg # type: ignore
import scipy.sparse.linalg
from ..fdmath import dx_lists_t, vfdfield_t, vcfdfield_t
from . import operators

View File

@ -182,7 +182,7 @@ from typing import Any
import numpy
from numpy.typing import NDArray, ArrayLike
from numpy.linalg import norm
import scipy.sparse as sparse # type: ignore
from scipy import sparse
from ..fdmath.operators import deriv_forward, deriv_back, cross
from ..fdmath import vec, unvec, dx_lists_t, vfdfield_t, vcfdfield_t

View File

@ -9,7 +9,7 @@ As the z-dependence is known, all the functions in this file assume a 2D grid
# TODO update module docs
import numpy
import scipy.sparse as sparse # type: ignore
from scipy import sparse
from ..fdmath import vec, unvec, dx_lists_t, vfdfield_t, cfdfield_t
from ..fdmath.operators import deriv_forward, deriv_back

View File

@ -7,7 +7,7 @@ from typing import Sequence
import numpy
from numpy.typing import NDArray
from numpy import floating
import scipy.sparse as sparse # type: ignore
from scipy import sparse
from .types import vfdfield_t