Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5c9179b

Browse files
MAINT: apply ruff/Pycodestyle rule F811
F811 Redefinition of unused `...` I have left out *.pyi files and some special cases.
1 parent 5ef245a commit 5c9179b

7 files changed

Lines changed: 3 additions & 8 deletions

File tree

.spin/cmds.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import os
22
import shutil
33
import pathlib
4-
import shutil
5-
import pathlib
64
import importlib
75
import subprocess
86

numpy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
frexp, from_dlpack, frombuffer, fromfile, fromfunction, fromiter,
145145
frompyfunc, fromstring, full, full_like, gcd, generic, geomspace,
146146
get_printoptions, getbufsize, geterr, geterrcall, greater,
147-
greater_equal, half, heaviside, hstack, hypot, identity, iinfo, iinfo,
147+
greater_equal, half, heaviside, hstack, hypot, identity, iinfo,
148148
indices, inexact, inf, inner, int16, int32, int64, int8, int_, intc,
149149
integer, intp, invert, is_busday, isclose, isdtype, isfinite,
150150
isfortran, isinf, isnan, isnat, isscalar, issubdtype, lcm, ldexp,

numpy/_core/tests/test_cpu_features.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import subprocess
99
import pathlib
1010
import os
11-
import re
1211

1312
def assert_features_equal(actual, desired, fname):
1413
__tracebackhide__ = True # Hide traceback for py.test

numpy/_core/tests/test_umath.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import itertools
55
import pytest
66
import sys
7-
import os
87
import operator
98
from fractions import Fraction
109
from functools import reduce

numpy/_typing/_dtype_like.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from collections.abc import Sequence
1+
from collections.abc import Sequence # noqa: F811
22
from typing import (
33
Any,
44
TypeAlias,

numpy/lib/tests/test_arraysetops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def assert_isin_equal(a, b):
270270
assert_isin_equal(empty_array, empty_array)
271271

272272
@pytest.mark.parametrize("kind", [None, "sort", "table"])
273-
def test_isin(self, kind):
273+
def test_isin_additional(self, kind):
274274
# we use two different sizes for the b array here to test the
275275
# two different paths in isin().
276276
for mult in (1, 10):

numpy/ma/extras.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
from numpy.lib.array_utils import normalize_axis_index, normalize_axis_tuple
3636
from numpy.lib._function_base_impl import _ureduce
3737
from numpy.lib._index_tricks_impl import AxisConcatenator
38-
from numpy._core.numeric import normalize_axis_tuple
3938

4039

4140
def issequence(seq):

0 commit comments

Comments
 (0)