pytorch/test/torch_np
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
..
numpy_tests [BE]: Enable ruff SLOT checks (#146276) 2025-02-04 19:18:23 +00:00
__init__.py
check_tests_conform.py
conftest.py
test_basic.py Fix unused Python variables in test/[e-z]* (#136964) 2024-12-18 23:02:30 +00:00
test_binary_ufuncs.py
test_dtype.py
test_function_base.py
test_ndarray_methods.py
test_nep50_examples.py
test_random.py Use random64 in Fischer-Yates algorithm for large N (#143682) 2025-01-07 03:48:56 +00:00
test_reductions.py Fix unused Python variables in test/[e-z]* (#136964) 2024-12-18 23:02:30 +00:00
test_scalars_0D_arrays.py
test_ufuncs_basic.py
test_unary_ufuncs.py