You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
__text_signature__ for __get__ methods is wrong #93021
In [18]: object.__init__.__get__.__text_signature__
Out[18]: '($self, instance, owner, /)'
In [19]: object.__init__.__get__(1)
Out[19]: <method-wrapper '__init__' of int object at 0x105e7d0b0>
In [20]: object.__init__.__get__(1, 2)
Out[20]: <method-wrapper '__init__' of int object at 0x105e7d0b0>
The signature claims there are two required positional arguments, but in fact the second argument is optional.
(Tested on 3.11 but I think it's wrong on all recent versions.)
Activity
pythongh-93021: Fix __text_signature__ for __get__
gh-93021: Fix __text_signature__ for __get__ (GH-93023)
pythongh-93021: Fix __text_signature__ for __get__ (pythonGH-93023)
pythongh-93021: Fix __text_signature__ for __get__ (pythonGH-93023)
gh-93021: Fix __text_signature__ for __get__ (GH-93023) (GH-94085)
gh-93021: Fix __text_signature__ for __get__ (GH-93023) (GH-94086)
ambv commentedon Jun 21, 2022
Fixed. Thanks! ✨ 🍰 ✨
Revert 30935 defer bpo45162 to 312 (#94285)