Enable type check for torch.testing._internal.common_device_type. (#44911)
Summary:
This PR intends to fix the type exceptions in common_device_type.py.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/44911
Reviewed By: walterddr
Differential Revision: D23768397
Pulled By: wuyangzhang
fbshipit-source-id: 053692583b4d6169b0eb5ffe0c3d30635c0db699