Skip to content

Commit 487fbbd

Browse files
committed
slight regex enhancement to match def/class
1 parent 6709682 commit 487fbbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpydoc/validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def source_file_def_line(self):
301301
def_lines = [
302302
i
303303
for i, x in enumerate(
304-
[re.match("^ *(def|class)", s) for s in sourcelines[0]]
304+
[re.match("^ *(def|class) ", s) for s in sourcelines[0]]
305305
)
306306
if x is not None
307307
]

0 commit comments

Comments
 (0)