@@ -723,8 +723,9 @@ def to_rst(cls):
723
723
'%r, not %r' )
724
724
D405 = D4xx .create_error ('D405' , 'Section name should not end with a colon' ,
725
725
'%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
+
728
729
729
730
class AttrDict (dict ):
730
731
def __getattr__ (self , item ):
@@ -1765,16 +1766,16 @@ def check_numpy(self, definition, docstring):
1765
1766
for section in self .ALL_NUMPY_SECTIONS :
1766
1767
with_colon = section .lower () + ':'
1767
1768
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
1769
1770
try :
1770
1771
next_line = lines_generator .next ()
1771
1772
except StopIteration :
1772
1773
# It probably isn't :)
1773
1774
return
1774
1775
1775
1776
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
1778
1779
1779
1780
if (leading_space (line ) > indent or
1780
1781
leading_space (next_line ) > indent ):
@@ -1834,6 +1835,7 @@ def main(use_pep257=False):
1834
1835
def main_pep257 ():
1835
1836
main (use_pep257 = True )
1836
1837
1838
+
1837
1839
def foo ():
1838
1840
"""A.
1839
1841
0 commit comments