[package] typing.io/re edge case hack (#60666)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/60666
Test Plan: Imported from OSS
Reviewed By: suo
Differential Revision: D29367847
Pulled By: Lilyjjo
fbshipit-source-id: 2c38140fbb3eab61ae3de60ab475243f0338c547