gh-117110: Fix subclasses of typing.Any with custom constructors
The superclass of typing.Any is object and object.__new__(...) doesn't accept additional argument beyond the first argument cls.
- Issue: gh-117110
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.
If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.
Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.
And if you don't make the requested changes, you will be poked with soft cushions!
Thanks @Azureblade3808 for the PR, and @AlexWaygood for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. 🐍🍒⛏🤖
GH-117357 is a backport of this pull request to the 3.12 branch.
GH-117358 is a backport of this pull request to the 3.11 branch.