[docs] copy signature from overridden and inherited methods

This commit is contained in:
Sebastian Law
2021-03-29 20:52:14 -07:00
committed by GitHub
parent 862d509d2e
commit d6501159e7
4 changed files with 17 additions and 18 deletions

View File

@@ -119,7 +119,7 @@ def flatten_user(cls):
return general
func = generate_function(attr)
func.__doc__ = value.__doc__
func = utils.copy_doc(value)(func)
setattr(cls, attr, func)
return cls