mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-112316: improve docs for inspect.signature
and inspect.Signature
(#112631)
This commit is contained in:
parent
3855b45874
commit
fc9e24b01f
2 changed files with 56 additions and 37 deletions
|
@ -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*.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue