Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit 93a3656

Browse files
committed
Fixing some pep8 issues
1 parent 48e31bb commit 93a3656

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/pydocstyle.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -723,8 +723,9 @@ def to_rst(cls):
723723
'%r, not %r')
724724
D405 = D4xx.create_error('D405', 'Section name should not end with a colon',
725725
'%r, not %r')
726-
D406 = D4xx.create_error('D406', 'Section underline should match the length of '
727-
'the section\'s name', 'len(%r) == %r')
726+
D406 = D4xx.create_error('D406', 'Section underline should match the length '
727+
'of the section\'s name', 'len(%r) == %r')
728+
728729

729730
class AttrDict(dict):
730731
def __getattr__(self, item):
@@ -1765,16 +1766,16 @@ def check_numpy(self, definition, docstring):
17651766
for section in self.ALL_NUMPY_SECTIONS:
17661767
with_colon = section.lower() + ':'
17671768
if line.strip().lower() in [section.lower(), with_colon]:
1768-
# There's a chance that this line is a numpy parameter
1769+
# There's a chance that this line is a numpy section
17691770
try:
17701771
next_line = lines_generator.next()
17711772
except StopIteration:
17721773
# It probably isn't :)
17731774
return
17741775

17751776
if ''.join(set(next_line.strip())) == '-':
1776-
# The next line contains only dashes, it's a good chance
1777-
# that it's a numpy section
1777+
# The next line contains only dashes, there's a good
1778+
# chance that it's a numpy section
17781779

17791780
if (leading_space(line) > indent or
17801781
leading_space(next_line) > indent):
@@ -1834,6 +1835,7 @@ def main(use_pep257=False):
18341835
def main_pep257():
18351836
main(use_pep257=True)
18361837

1838+
18371839
def foo():
18381840
"""A.
18391841

0 commit comments

Comments
 (0)