Skip to content

Commit ada0154

Browse files
committed
Updated method
1 parent 5574b4d commit ada0154

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/validate_docstrings.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,12 @@ def parameter_desc(self, param):
472472

473473
@property
474474
def see_also(self):
475-
return collections.OrderedDict((name, ''.join(desc))
476-
for name, desc in self.doc['See Also'])
475+
result = collections.OrderedDict()
476+
for funcs, desc in self.doc['See Also']:
477+
for func, _ in funcs:
478+
result[func] = ''.join(desc)
479+
480+
return result
477481

478482
@property
479483
def examples(self):

0 commit comments

Comments
 (0)