Skip to content

Commit 177bd62

Browse files
Apply ruff/pycodestyle rule W293
W293 Blank line contains whitespace
1 parent 6e7f6ec commit 177bd62

37 files changed

+67
-67
lines changed

benchmarks/benchmarks/bench_linalg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def time_norm_small_array(self):
111111

112112
def time_det_small_array(self):
113113
np.linalg.det(self.array_5_5)
114-
114+
115115
class Lstsq(Benchmark):
116116
def setup(self):
117117
self.a = get_squares_()['float64']

benchmarks/benchmarks/bench_polynomial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def time_polynomial_evaluation_array_3(self):
2222

2323
def time_polynomial_evaluation_array_1000(self):
2424
self.polynomial_degree2(self.array1000)
25-
25+
2626
def time_polynomial_addition(self):
2727
_ = self.polynomial_degree2 + self.polynomial_degree2
28-
28+
2929

benchmarks/benchmarks/bench_ufunc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ def setup(self, dtype):
597597
N = 1000000
598598
self.a = np.random.randint(20, size=N).astype(dtype)
599599
self.b = np.random.randint(4, size=N).astype(dtype)
600-
600+
601601
def time_pow(self, dtype):
602602
np.power(self.a, self.b)
603603

numpy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def __getattr__(attr):
395395

396396
if attr in __former_attrs__:
397397
raise AttributeError(__former_attrs__[attr], name=None)
398-
398+
399399
if attr in __expired_attributes__:
400400
raise AttributeError(
401401
f"`np.{attr}` was removed in the NumPy 2.0 release. "

numpy/_core/_add_newdocs_scalars.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,11 @@ def add_newdoc_for_scalar_type(obj, fixed_aliases, doc):
292292
``1970-01-01T00:00:00``.
293293
If created from string, the string can be in ISO 8601 date
294294
or datetime format.
295-
295+
296296
When parsing a string to create a datetime object, if the string contains
297297
a trailing timezone (A 'Z' or a timezone offset), the timezone will be
298298
dropped and a User Warning is given.
299-
299+
300300
Datetime64 objects should be considered to be UTC and therefore have an
301301
offset of +0000.
302302

numpy/_core/defchararray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def greater(x1, x2):
216216
See Also
217217
--------
218218
equal, not_equal, greater_equal, less_equal, less
219-
219+
220220
Examples
221221
--------
222222
>>> import numpy as np

numpy/_core/fromnumeric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3885,7 +3885,7 @@ def mean(a, axis=None, dtype=None, out=None, keepdims=np._NoValue, *,
38853885
0.55000000074505806 # may vary
38863886
38873887
Computing the mean in timedelta64 is available:
3888-
3888+
38893889
>>> b = np.array([1, 3], dtype="timedelta64[D]")
38903890
>>> np.mean(b)
38913891
np.timedelta64(2,'D')

numpy/_core/memmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class memmap(ndarray):
8484
.. versionchanged:: 2.0
8585
The shape parameter can now be any integer sequence type, previously
8686
types were limited to tuple and int.
87-
87+
8888
order : {'C', 'F'}, optional
8989
Specify the order of the ndarray memory layout:
9090
:term:`row-major`, C-style or :term:`column-major`,

numpy/_core/multiarray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def concatenate(arrays, axis=None, out=None, *, dtype=None, casting=None):
192192
casting : {'no', 'equiv', 'safe', 'same_kind', 'unsafe'}, optional
193193
Controls what kind of data casting may occur. Defaults to 'same_kind'.
194194
For a description of the options, please see :term:`casting`.
195-
195+
196196
.. versionadded:: 1.20.0
197197
198198
Returns

numpy/_core/numerictypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def issctype(rep):
229229
return False
230230
except Exception:
231231
return False
232-
232+
233233

234234
@set_module('numpy')
235235
def obj2sctype(rep, default=None):

0 commit comments

Comments
 (0)