Skip to content

Commit 61fad93

Browse files
committed
Removed unnecessary code
1 parent 2e0c8a4 commit 61fad93

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

scripts/validate_docstrings.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,14 @@ def get_api_items(api_doc_fd):
129129
if line_stripped == "":
130130
position = None
131131
continue
132-
item = line_stripped.strip()
133-
if item in IGNORE_VALIDATION:
132+
if line_stripped in IGNORE_VALIDATION:
134133
continue
135134
func = importlib.import_module(current_module)
136-
for part in item.split("."):
135+
for part in line_stripped.split("."):
137136
func = getattr(func, part)
138137

139138
yield (
140-
".".join([current_module, item]),
139+
".".join([current_module, line_stripped]),
141140
func,
142141
current_section,
143142
current_subsection,

0 commit comments

Comments
 (0)