bpo-37953: Fix ForwardRef hash and equality checks (GH-15400)


Ideally if we stick a ForwardRef in a dictionary we would like to reliably be able to get it out again.

https://bugs.python.org/issue37953
(cherry picked from commit e082e7cbe4a934b86f7a07354d97d4e14a9dd46a)

Co-authored-by: plokmijnuhby <39633434+plokmijnuhby@users.noreply.github.com>
3 files changed