Skip to content

Commit

Permalink
fix: Allow setting doctring through alias
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed May 5, 2023
1 parent 0e98546 commit 2e0f553
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/griffe/dataclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -933,6 +933,10 @@ def modules_collection(self) -> ModulesCollection:
def docstring(self) -> Docstring | None: # noqa: D102
return self.target.docstring

@docstring.setter
def docstring(self, docstring: Docstring | None) -> None:
self.target.docstring = docstring

@property
def members(self) -> dict[str, Object | Alias]: # noqa: D102
return self.target.members
Expand Down

0 comments on commit 2e0f553

Please sign in to comment.