bpo-45755: [typing] Reveal class attributes of generic in generic aliases in `dir()` (GH-29962)

(cherry picked from commit d6e13747161d7b634b47d2d3d212ed3be4a21fab)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
3 files changed