bpo-39481: Make weakref and WeakSet generic (GH-19497)

3 files changed