[3.9] bpo-42332: Add weakref slot to types.GenericAlias (GH-23250) (GH-23309)



(cherry picked from commit 384b7a4bd988986bca227c7e85c32d766da74708)
3 files changed