Skip to content
Myr

Merge pull request #1483 from untitaker/improve-autodoc

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Show original autodoc signatures

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parents 7a999cd, d402884 · Browse files · 1 file+21 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+21 added−0 removed

  • other:+21 added−0 removed

1 file+21 added−0 removed

modified:docs/conf.py+21 added
267 unmodified lines
268269 pygments_style = 'tango'270 html_theme = 'default'271 html_theme_options = {}272273274# unwrap decorators275def unwrap_decorators():276 import sphinx.util.inspect as inspect277 import functools278279 old_getargspec = inspect.getargspec280 def getargspec(x):281 return old_getargspec(getattr(x, '_original_function', x))282 inspect.getargspec = getargspec283284 old_update_wrapper = functools.update_wrapper285 def update_wrapper(wrapper, wrapped, *a, **kw):286 rv = old_update_wrapper(wrapper, wrapped, *a, **kw)287 rv._original_function = wrapped288 return rv289 functools.update_wrapper = update_wrapper290291unwrap_decorators()292del unwrap_decorators