type check for torch.quantization.stubs (#46475)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/42973
Pull Request resolved: https://github.com/pytorch/pytorch/pull/46475
Reviewed By: malfet
Differential Revision: D24368088
Pulled By: walterddr
fbshipit-source-id: 7a0ccb4fa66b28d4ac59923d727e632351a02b3f