pytorch/test/torch_np/numpy_tests
Aaron Gokaslan 7f65a20884 [BE]: Enable ruff SLOT checks (#146276)
This enables a check that which a class which only inherits from immutable classes like str, tuple, and NamedTuple, also defined `__slots__` so they don't allocate memory unnecessarily. This also ensure contributors think about how they define their classes with subclass NamedTuples and str, of which we have many in our codebase

Pull Request resolved: https://github.com/pytorch/pytorch/pull/146276
Approved by: https://github.com/aorenste
2025-02-04 19:18:23 +00:00
..
core [BE]: Enable ruff SLOT checks (#146276) 2025-02-04 19:18:23 +00:00
fft
lib Enable ruff F841 on numpy tests (#146126) 2025-02-01 03:07:28 +00:00
linalg Enable ruff F841 on numpy tests (#146126) 2025-02-01 03:07:28 +00:00