summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorMike Taves <mwtoews@gmail.com>2020-02-05 08:21:51 +1300
committerMike Taves <mwtoews@gmail.com>2020-02-06 22:16:23 +1300
commit07bf33fbf5be8143aab037dc65aba3086f8badf6 (patch)
tree8f48992ca38bafe589ed331f54c43106ba23902d /benchmarks
parenta9bc5db4671c6c702e3a8a35fbf31b8d3225fad2 (diff)
downloadnumpy-07bf33fbf5be8143aab037dc65aba3086f8badf6.tar.gz
MAINT: cleanup unused imports; avoid redefinition of imports
* Cleanup unused imports (F401) of mostly standard Python modules, or some internal but unlikely referenced modules * Where internal imports are potentially used, mark with noqa * Avoid redefinition of imports (F811)
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/benchmarks/bench_random.py2
-rw-r--r--benchmarks/benchmarks/bench_records.py2
2 files changed, 0 insertions, 4 deletions
diff --git a/benchmarks/benchmarks/bench_random.py b/benchmarks/benchmarks/bench_random.py
index 9a5125876..9482eb04d 100644
--- a/benchmarks/benchmarks/bench_random.py
+++ b/benchmarks/benchmarks/bench_random.py
@@ -2,8 +2,6 @@ from .common import Benchmark
import numpy as np
-from numpy.random import RandomState
-
try:
from numpy.random import Generator
except ImportError:
diff --git a/benchmarks/benchmarks/bench_records.py b/benchmarks/benchmarks/bench_records.py
index 92e0fca16..2d9c104d2 100644
--- a/benchmarks/benchmarks/bench_records.py
+++ b/benchmarks/benchmarks/bench_records.py
@@ -1,5 +1,3 @@
-import os
-
from .common import Benchmark
import numpy as np