[docs] copy signature from overridden and inherited methods

This commit is contained in:
Sebastian Law authored and GitHub committed 2021-03-29 23:52:14 -04:00
1 parent 862d509d2e
commit d6501159e7
4 files changed
+17 -18

No files matched your search

+1 -1
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