File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -545,16 +545,16 @@ def validate(func_name):
545
545
wrong_type = wrong_type ,
546
546
)
547
547
)
548
- this_desc = doc .parameter_desc (param )
549
- if not "" .join (this_desc ):
548
+ desc = doc .parameter_desc (param )
549
+ if not "" .join (desc ):
550
550
errs .append (error ("PR07" , param_name = param ))
551
551
else :
552
- if this_desc [0 ][0 ].isalpha () and not this_desc [0 ][0 ].isupper ():
552
+ if desc [0 ][0 ].isalpha () and not desc [0 ][0 ].isupper ():
553
553
errs .append (error ("PR08" , param_name = param ))
554
554
# Not ending in "." is only an error if the last bit is not
555
555
# indented (e.g., quote or code block)
556
- if this_desc [- 1 ][ - 1 ] != "." and \
557
- not this_desc [- 1 ].startswith (IGNORE_STARTS ):
556
+ if not desc [- 1 ]. endswith ( "." ) and \
557
+ not desc [- 1 ].startswith (IGNORE_STARTS ):
558
558
errs .append (error ("PR09" , param_name = param ))
559
559
560
560
if doc .is_function_or_method :
You can’t perform that action at this time.
0 commit comments