@@ -376,9 +376,9 @@ def first_line_ends_in_dot(self):
376
376
@property
377
377
def deprecated (self ):
378
378
pattern = re .compile ('.. deprecated:: ' )
379
- return (self .name .startswith ('pandas.Panel' ) or
380
- bool (pattern .search (self .summary )) or
381
- bool (pattern .search (self .extended_summary )))
379
+ return (self .name .startswith ('pandas.Panel' )
380
+ or bool (pattern .search (self .summary ))
381
+ or bool (pattern .search (self .extended_summary )))
382
382
383
383
@property
384
384
def mentioned_private_classes (self ):
@@ -440,8 +440,8 @@ def validate_one(func_name):
440
440
errs .append ('Summary does not end with a period' )
441
441
if doc .summary != doc .summary .lstrip ():
442
442
errs .append ('Summary contains heading whitespaces.' )
443
- elif (doc .is_function_or_method and
444
- doc .summary .split (' ' )[0 ][- 1 ] == 's' ):
443
+ elif (doc .is_function_or_method
444
+ and doc .summary .split (' ' )[0 ][- 1 ] == 's' ):
445
445
errs .append ('Summary must start with infinitive verb, '
446
446
'not third person (e.g. use "Generate" instead of '
447
447
'"Generates")' )
@@ -553,8 +553,8 @@ def validate_all():
553
553
for class_ in (pandas .Series , pandas .DataFrame , pandas .Panel ):
554
554
for member in inspect .getmembers (class_ ):
555
555
func_name = 'pandas.{}.{}' .format (class_ .__name__ , member [0 ])
556
- if (not member [0 ].startswith ('_' ) and
557
- func_name not in api_item_names ):
556
+ if (not member [0 ].startswith ('_' )
557
+ and func_name not in api_item_names ):
558
558
doc_info = validate_one (func_name )
559
559
result [func_name ] = doc_info
560
560
result [func_name ]['in_api' ] = False
0 commit comments