enable type checking for torch._classes (#44576)
Summary:
Fix https://github.com/pytorch/pytorch/issues/42980
Pull Request resolved: https://github.com/pytorch/pytorch/pull/44576
Reviewed By: malfet
Differential Revision: D23668741
Pulled By: walterddr
fbshipit-source-id: 4201ea3187a40051ebff53d28c8e571ea1a61126