Skip to content

Commit 4a62039

Browse files
authored
fix: Pass context when parsing class docstring
PR #118: #118
1 parent 23814cc commit 4a62039

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pytkdocs/loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ def get_class_documentation(self, node: ObjectNode, select_members=None) -> Clas
475475
context["signature"] = inspect.signature(class_.__init__)
476476
except (TypeError, ValueError):
477477
pass
478-
root_object.parse_docstring(self.docstring_parser, attributes=attributes_data)
478+
root_object.parse_docstring(self.docstring_parser, **context)
479479

480480
if select_members is False:
481481
return root_object

0 commit comments

Comments
 (0)