mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-91098: Use Argument Clinic for Object/classobject.c to fix docstrings (#31711)
Closes GH-91098. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
parent
014eb7fd02
commit
7fbc7f6128
4 changed files with 174 additions and 116 deletions
|
@ -77,7 +77,9 @@ class Get_argspecTest(unittest.TestCase):
|
|||
tiptest(List.append, '(self, object, /)' + append_doc)
|
||||
tiptest([].append, '(object, /)' + append_doc)
|
||||
|
||||
tiptest(types.MethodType, "method(function, instance)")
|
||||
tiptest(types.MethodType,
|
||||
'(function, instance, /)\n'
|
||||
'Create a bound instance method object.')
|
||||
tiptest(SB(), default_tip)
|
||||
|
||||
p = re.compile('')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue