From 09ce6d67222a663ed5cd0b0607a33a1b29b61203 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Thu, 18 Aug 2022 23:49:48 -0700 Subject: [PATCH] stop ignoring numpy types --- adze/boundary.py | 4 ++-- adze/moments.py | 2 +- adze/shapes.py | 4 ++-- adze/split.py | 2 +- adze/test/test_benchmarks.py | 4 ++-- adze/test/test_split.py | 6 +++--- adze/test/test_voxel.py | 6 +++--- adze/test/utils.py | 4 ++-- adze/transform.py | 2 +- adze/util.py | 2 +- adze/voxel.py | 2 +- 11 files changed, 19 insertions(+), 19 deletions(-) diff --git a/adze/boundary.py b/adze/boundary.py index 427f984..4263e3d 100644 --- a/adze/boundary.py +++ b/adze/boundary.py @@ -1,6 +1,6 @@ from typing import List, Dict, Any -import numpy # type: ignore -from numpy.linalg import norm # type: ignore +import numpy +from numpy.linalg import norm from . import poly_t, plane_t from .util import _get_maps, find_components, find_faces diff --git a/adze/moments.py b/adze/moments.py index 2c2aafd..93b79d3 100644 --- a/adze/moments.py +++ b/adze/moments.py @@ -1,5 +1,5 @@ from typing import Dict, Tuple -import numpy # type: ignore +import numpy from . import poly_t, plane_t from .util import find_faces diff --git a/adze/shapes.py b/adze/shapes.py index c9215c7..20f422e 100644 --- a/adze/shapes.py +++ b/adze/shapes.py @@ -1,6 +1,6 @@ from typing import List -import numpy # type: ignore -from numpy.linalg import norm # type: ignore +import numpy +from numpy.linalg import norm from . import poly_t, plane_t diff --git a/adze/split.py b/adze/split.py index 201171c..32e807b 100644 --- a/adze/split.py +++ b/adze/split.py @@ -1,5 +1,5 @@ from typing import Tuple, Union -import numpy # type: ignore +import numpy from . import poly_t, plane_t from .util import build_empty, _get_map diff --git a/adze/test/test_benchmarks.py b/adze/test/test_benchmarks.py index dfeca5d..f899353 100644 --- a/adze/test/test_benchmarks.py +++ b/adze/test/test_benchmarks.py @@ -8,9 +8,9 @@ from time import perf_counter import random import logging -import numpy # type: ignore +import numpy from numpy import sin, cos, pi -from numpy.linalg import norm # type: ignore +from numpy.linalg import norm import adze import adze.util diff --git a/adze/test/test_split.py b/adze/test/test_split.py index 0671fe0..3e8b197 100644 --- a/adze/test/test_split.py +++ b/adze/test/test_split.py @@ -1,9 +1,9 @@ import logging import pytest from pytest import approx -import numpy # type: ignore -from numpy.linalg import norm # type: ignore -from numpy.testing import assert_allclose, assert_array_equal # type: ignore +import numpy +from numpy.linalg import norm +from numpy.testing import assert_allclose, assert_array_equal import adze import adze.util diff --git a/adze/test/test_voxel.py b/adze/test/test_voxel.py index 4dabdeb..f433f28 100644 --- a/adze/test/test_voxel.py +++ b/adze/test/test_voxel.py @@ -1,9 +1,9 @@ import logging import pytest from pytest import approx -import numpy # type: ignore -from numpy.linalg import norm # type: ignore -from numpy.testing import assert_allclose, assert_array_equal # type: ignore +import numpy +from numpy.linalg import norm +from numpy.testing import assert_allclose, assert_array_equal from time import perf_counter import adze diff --git a/adze/test/utils.py b/adze/test/utils.py index 0613fa2..f99c9f0 100644 --- a/adze/test/utils.py +++ b/adze/test/utils.py @@ -1,6 +1,6 @@ -import numpy # type: ignore +import numpy from numpy import pi, cos, sin -from numpy.linalg import norm # type: ignore +from numpy.linalg import norm import random import adze diff --git a/adze/transform.py b/adze/transform.py index df83cd5..1b3f91d 100644 --- a/adze/transform.py +++ b/adze/transform.py @@ -1,5 +1,5 @@ from typing import Union -import numpy # type: ignore +import numpy from numpy import sin, cos from . import poly_t, plane_t diff --git a/adze/util.py b/adze/util.py index 6a2c6df..0d0b24b 100644 --- a/adze/util.py +++ b/adze/util.py @@ -1,5 +1,5 @@ from typing import Dict, Tuple, List -import numpy # type: ignore +import numpy plane_t = Tuple[numpy.ndarray, float] diff --git a/adze/voxel.py b/adze/voxel.py index 6b35808..78e7096 100644 --- a/adze/voxel.py +++ b/adze/voxel.py @@ -1,5 +1,5 @@ from typing import Tuple, List -import numpy # type: ignore +import numpy from . import poly_t, plane_t from .split import split, clip