Skip to content

Commit 3a5e7fd

Browse files
Fixing pep8
1 parent 156b997 commit 3a5e7fd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

scripts/validate_docstrings.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,9 @@ def first_line_ends_in_dot(self):
376376
@property
377377
def deprecated(self):
378378
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)))
382382

383383
@property
384384
def mentioned_private_classes(self):
@@ -440,8 +440,8 @@ def validate_one(func_name):
440440
errs.append('Summary does not end with a period')
441441
if doc.summary != doc.summary.lstrip():
442442
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'):
445445
errs.append('Summary must start with infinitive verb, '
446446
'not third person (e.g. use "Generate" instead of '
447447
'"Generates")')
@@ -553,8 +553,8 @@ def validate_all():
553553
for class_ in (pandas.Series, pandas.DataFrame, pandas.Panel):
554554
for member in inspect.getmembers(class_):
555555
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):
558558
doc_info = validate_one(func_name)
559559
result[func_name] = doc_info
560560
result[func_name]['in_api'] = False

0 commit comments

Comments
 (0)