[export] suppress type error (#119720)
Differential Revision: [D53681243](https://our.internmc.facebook.com/intern/diff/D53681243/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119720
Approved by: https://github.com/kit1980, https://github.com/huydhn