SIGN IN SIGN UP

[3.14] gh-132775: Fix _PyFunctIon_VerifyStateless() (gh-134901)

gh-132775: Fix _PyFunctIon_VerifyStateless() ()

The problem we're fixing here is that we were using PyDict_Size() on "defaults",
which it is actually a tuple.  We're also adding some explicit type checks.

This is a follow-up to gh-133221/gh-133528.

(cherry picked from commit dafd14146f7, AKA gh-134900)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
M
Miss Islington (bot) committed
9c2e0febb481f1c24a6397d3a4fb9422c9433ef4
Parent: 4670ddd
Committed by GitHub <noreply@github.com> on 5/29/2025, 8:55:42 PM