Skip to content

Commit fe417f5

Browse files
DimitriPapadopoulosMaanasArora
authored andcommitted
STY: Partially apply ruff:pycodestyle rule E266
Too many leading `#` before block comment For now, do not modify titles.
1 parent ba5bf8d commit fe417f5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

numpy/_core/tests/test_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ def test_array_array():
8282
dtype=[('f0', int), ('f1', float), ('f2', str)])
8383
o = type("o", (object,),
8484
{"__array_struct__": a.__array_struct__})
85-
## wasn't what I expected... is np.array(o) supposed to equal a ?
86-
## instead we get a array([...], dtype=">V18")
85+
# wasn't what I expected... is np.array(o) supposed to equal a ?
86+
# instead we get a array([...], dtype=">V18")
8787
assert_equal(bytes(np.array(o).data), bytes(a.data))
8888

8989
# test array

numpy/ctypeslib/_ctypeslib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ def load_library(libname, loader_path):
158158
try:
159159
return ctypes.cdll[libpath]
160160
except OSError:
161-
## defective lib file
161+
# defective lib file
162162
raise
163-
## if no successful return in the libname_ext loop:
163+
# if no successful return in the libname_ext loop:
164164
raise OSError("no file with expected extension")
165165

166166

0 commit comments

Comments
 (0)