gh-87980: Fix the error message for disallowed __weakref__ slots (#25362)

Fix the error message for disallowed `__weakref__` slots.
1 file changed