docstring-inheritance icon indicating copy to clipboard operation
docstring-inheritance copied to clipboard

Add `inherit_docstring` decorator to inherit docstring

Open haiiliin opened this issue 2 years ago • 2 comments

Closes #9.

haiiliin avatar Oct 27 '23 03:10 haiiliin

Hello and thank you for this PR!

Like for the metaclasses, would you mind creating one decorator per style?

For performance reasons, would you also mind preventing the decorator from changing the docstring after the first call?

AntoineD avatar Oct 27 '23 14:10 AntoineD

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (be17920) to head (daddf96). Report is 46 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #10   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines          273       281    +8     
  Branches        61        61           
=========================================
+ Hits           273       281    +8     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Oct 27 '23 21:10 codecov-commenter