bpo-39942:Fix failure in `TypeVar` when missing `__name__` (GH-19616)


https://bugs.python.org/issue39942
(cherry picked from commit a25a04fea5446b1712cde0cff556574be139285a)

Co-authored-by: HongWeipeng <hongweichen8888@sina.com>
3 files changed