diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2021-05-25 14:36:51 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-25 14:36:51 -0600 |
commit | ecdba3a140126174a6a4d86fe0fbf2ce2ad680f9 (patch) | |
tree | da9d0f709301410d54939fe0af6c426b190f2098 | |
parent | 5520a1757e4476bc6526973ad46c46b82637ae1c (diff) | |
parent | b3e54cc7ea0808642829b9aa71fa8e51dcc6050e (diff) | |
download | numpy-ecdba3a140126174a6a4d86fe0fbf2ce2ad680f9.tar.gz |
Merge pull request #19090 from default-303/LGTM_alerts
MAINT: removed unused imports listed in LGTM
-rw-r--r-- | numpy/core/defchararray.py | 1 | ||||
-rw-r--r-- | numpy/core/records.py | 1 | ||||
-rw-r--r-- | numpy/distutils/fcompiler/nv.py | 2 | ||||
-rwxr-xr-x | numpy/f2py/crackfortran.py | 1 | ||||
-rw-r--r-- | numpy/lib/npyio.py | 1 | ||||
-rw-r--r-- | numpy/ma/core.py | 1 | ||||
-rw-r--r-- | numpy/ma/extras.py | 1 | ||||
-rw-r--r-- | numpy/typing/_array_like.py | 3 | ||||
-rw-r--r-- | numpy/typing/_callable.py | 2 |
9 files changed, 1 insertions, 12 deletions
diff --git a/numpy/core/defchararray.py b/numpy/core/defchararray.py index ab1166ad2..e264fa210 100644 --- a/numpy/core/defchararray.py +++ b/numpy/core/defchararray.py @@ -16,7 +16,6 @@ The preferred alias for `defchararray` is `numpy.char`. """ import functools -import sys from .numerictypes import ( string_, unicode_, integer, int_, object_, bool_, character) from .numeric import ndarray, compare_chararrays diff --git a/numpy/core/records.py b/numpy/core/records.py index 5bd13a698..b3474ad01 100644 --- a/numpy/core/records.py +++ b/numpy/core/records.py @@ -33,7 +33,6 @@ Record arrays allow us to access fields as properties:: array([2., 2.]) """ -import os import warnings from collections import Counter from contextlib import nullcontext diff --git a/numpy/distutils/fcompiler/nv.py b/numpy/distutils/fcompiler/nv.py index 8e9f16835..212f34806 100644 --- a/numpy/distutils/fcompiler/nv.py +++ b/numpy/distutils/fcompiler/nv.py @@ -1,5 +1,3 @@ -import sys - from numpy.distutils.fcompiler import FCompiler compilers = ['NVHPCFCompiler'] diff --git a/numpy/f2py/crackfortran.py b/numpy/f2py/crackfortran.py index 6453bbecb..984bd642b 100755 --- a/numpy/f2py/crackfortran.py +++ b/numpy/f2py/crackfortran.py @@ -139,7 +139,6 @@ TODO: The above may be solved by creating appropriate preprocessor program, for example. """ -import io import sys import string import fileinput diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index 5780a05bb..c4d625bd3 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -1,4 +1,3 @@ -import sys import os import re import functools diff --git a/numpy/ma/core.py b/numpy/ma/core.py index 63d42ecca..4c204cac2 100644 --- a/numpy/ma/core.py +++ b/numpy/ma/core.py @@ -40,7 +40,6 @@ from numpy.compat import ( from numpy import expand_dims from numpy.core.numeric import normalize_axis_tuple from numpy.core._internal import recursive -from numpy.compat import pickle __all__ = [ diff --git a/numpy/ma/extras.py b/numpy/ma/extras.py index bd5fc2ca3..c139f4640 100644 --- a/numpy/ma/extras.py +++ b/numpy/ma/extras.py @@ -33,7 +33,6 @@ from .core import ( import numpy as np from numpy import ndarray, array as nxarray -import numpy.core.umath as umath from numpy.core.multiarray import normalize_axis_index from numpy.core.numeric import normalize_axis_tuple from numpy.lib.function_base import _ureduce diff --git a/numpy/typing/_array_like.py b/numpy/typing/_array_like.py index 9f57b2295..2283c98d7 100644 --- a/numpy/typing/_array_like.py +++ b/numpy/typing/_array_like.py @@ -1,7 +1,7 @@ from __future__ import annotations import sys -from typing import Any, overload, Sequence, TYPE_CHECKING, Union, TypeVar +from typing import Any, Sequence, TYPE_CHECKING, Union, TypeVar from numpy import ( ndarray, @@ -20,7 +20,6 @@ from numpy import ( str_, bytes_, ) -from ._dtype_like import DTypeLike if sys.version_info >= (3, 8): from typing import Protocol diff --git a/numpy/typing/_callable.py b/numpy/typing/_callable.py index d9cb0f157..8f838f1ae 100644 --- a/numpy/typing/_callable.py +++ b/numpy/typing/_callable.py @@ -43,11 +43,9 @@ from ._scalars import ( _BoolLike_co, _IntLike_co, _FloatLike_co, - _ComplexLike_co, _NumberLike_co, ) from . import NBitBase -from ._array_like import ArrayLike from ._generic_alias import NDArray if sys.version_info >= (3, 8): |