pytorch/torch/_subclasses
Yuanyuan Chen fb64da0791 [2/N] Use "is" in python type comparison (#165142)
This is follow-up of #165037. It generally recommended to use `is/is not` to compare types. Therefore this series of changes apply this suggestion in the code base, and it aims to finally enabling related linter checks.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/165142
Approved by: https://github.com/albanD
2025-10-10 15:36:44 +00:00
..
__init__.py [BE][Easy][14/19] enforce style for empty lines in import segments in torch/_[a-c]*/ and torch/_[e-h]*/ and torch/_[j-z]*/ (#129765) 2024-07-31 10:42:50 +00:00
_fake_tensor_utils.py Add pyrefly suppressions (3/n) (#164588) 2025-10-03 22:03:03 +00:00
fake_impls.py remove more (#164753) 2025-10-08 14:23:38 +00:00
fake_tensor.py [2/N] Use "is" in python type comparison (#165142) 2025-10-10 15:36:44 +00:00
fake_utils.py [2/N] Fix ruff warnings (#164460) 2025-10-04 03:40:32 +00:00
functional_tensor.py Do not decompose in functionalization/proxy tensor if autograd wouldn't have decomposed (#164939) 2025-10-10 00:15:00 +00:00
meta_utils.py More ruff SIM fixes (#164695) 2025-10-09 03:24:50 +00:00
schema_check_mode.py [2/N] Use "is" in python type comparison (#165142) 2025-10-10 15:36:44 +00:00