gh-112316: improve docs for inspect.signature and inspect.Signature (#112631)

This commit is contained in:
Alex Waygood 2023-12-03 09:37:34 +00:00 committed by GitHub
parent 3855b45874
commit fc9e24b01f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 56 additions and 37 deletions

View file

@ -3319,7 +3319,7 @@ class Signature:
return self.format()
def format(self, *, max_width=None):
"""Convert signature object to string.
"""Create a string representation of the Signature object.
If *max_width* integer is passed,
signature will try to fit into the *max_width*.