python-botocore/2507.patch
Gwyn Ciesla 99fe52cec1 1.25.11
2022-05-11 14:44:31 -05:00

18 lines
711 B
Diff

--- a/botocore/docs/method.py~ 2022-05-10 13:06:42.000000000 -0500
+++ b/botocore/docs/method.py 2022-05-11 14:29:40.467083093 -0500
@@ -101,13 +101,7 @@
:param exclude: The names of the parameters to exclude from
documentation.
"""
- argspec = inspect.getfullargspec(method)
- signature_params = inspect.formatargspec(
- args=argspec.args[1:],
- varargs=argspec.varargs,
- varkw=argspec.varkw,
- defaults=argspec.defaults,
- )
+ signature_params = str(inspect.signature(method))
signature_params = signature_params.lstrip('(')
signature_params = signature_params.rstrip(')')
section.style.start_sphinx_py_method(name, signature_params)