diff options
| author | Michael Merickel <michael@merickel.org> | 2022-03-13 17:49:00 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-13 17:49:00 -0500 |
| commit | 9531d37e843efcae676fd6cafe697fefd7bc5f7d (patch) | |
| tree | 471a5a1ffe6448033e1e58acdbffe2870bb26e91 /docs | |
| parent | 6966401de04be64906f40e6fc6a2cf138cb7d3ca (diff) | |
| parent | 1b0650d825ca4df08c8ae1292cd445d60495966e (diff) | |
| download | pyramid-9531d37e843efcae676fd6cafe697fefd7bc5f7d.tar.gz pyramid-9531d37e843efcae676fd6cafe697fefd7bc5f7d.tar.bz2 pyramid-9531d37e843efcae676fd6cafe697fefd7bc5f7d.zip | |
Merge pull request #3696 from Pylons/replace-getargspec
get rid of deprecated getargspec and formatargspec
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/conf.py | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/docs/conf.py b/docs/conf.py index 56de31591..8e1550798 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -14,7 +14,6 @@ import sys import os import datetime -import inspect import warnings warnings.simplefilter('ignore', DeprecationWarning) @@ -385,19 +384,7 @@ def setup(app): app.add_directive('frontmatter', FrontMatter) app.add_directive('mainmatter', MainMatter) app.add_directive('backmatter', BackMatter) - app.connect('autodoc-process-signature', resig) - - -def resig(app, what, name, obj, options, signature, return_annotation): - """ Allow for preservation of ``@action_method`` decorated methods - in configurator """ - docobj = getattr(obj, '__docobj__', None) - if docobj is not None: - argspec = inspect.getargspec(docobj) - if argspec[0] and argspec[0][0] in ('cls', 'self'): - del argspec[0][0] - signature = inspect.formatargspec(*argspec) - return signature, return_annotation + # turn off all line numbers in latex formatting |
