8000 MAINT: removed unused imports listed in LGTM · numpy/numpy@b3e54cc · GitHub
[go: up one dir, main page]

Skip to content

Commit b3e54cc

Browse files
committed
MAINT: removed unused imports listed in LGTM
1 parent ca53c09 commit b3e54cc

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

numpy/compat/py3k.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
from pathlib import Path
2222
import io
2323

24+
import abc
25+
from abc import ABC as abc_ABC
26+
2427
try:
2528
import pickle5 as pickle
2629
except ImportError:

numpy/core/umath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# These imports are needed for backward compatibility,
1212
# do not change them. issue gh-11862
1313
# _ones_like is semi-public, on purpose not added to __all__
14-
from ._multiarray_umath import _UFUNC_API, _add_newdoc_ufunc
14+
from ._multiarray_umath import _UFUNC_API, _add_newdoc_ufunc, _ones_like
1515

1616
__all__ = [
1717
'_UFUNC_API', 'ERR_CALL', 'ERR_DEFAULT', 'ERR_IGNORE', 'ERR_LOG',

numpy/distutils/mingw32ccompiler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import textwrap
1616

1717
# Overwrite certain distutils.ccompiler functions:
18+
import numpy.distutils.ccompiler # noqa: F401
1819
from numpy.distutils import log
1920
# NT stuff
2021
# 1. Make sure libpython<version>.a exists for gcc. If not, build it.

numpy/lib/function_base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import builtins
3434

3535
# needed in this module for compatibility
36+
from numpy.lib.histograms import histogram, histogramdd
3637

3738

3839
array_function_dispatch = functools.partial(

0 commit comments

Comments
 (0)
0