pytorch/torch/distributed/elastic/multiprocessing
Aaron Gokaslan 1562dae62c [BE]: Apply RUF025 dict.fromkeys preview rule (#118637)
Simplifies and optimizes dict construction using the `fromkeys` classmethod ctor. This also makes it really obvious when all the keys will have the same static value, which could be a bug if unintentional. It is also significantly faster than using a dict comprehension. The rule is in preview, but I am adding a forward fix for when it becomes stable.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/118637
Approved by: https://github.com/albanD
2024-01-30 20:46:54 +00:00
..
errors Issue113185 (#113523) 2023-11-14 22:25:28 +00:00
__init__.py [BE]: Apply RUF025 dict.fromkeys preview rule (#118637) 2024-01-30 20:46:54 +00:00
api.py [BE]: Apply RUF025 dict.fromkeys preview rule (#118637) 2024-01-30 20:46:54 +00:00
redirects.py Issue113185 (#113523) 2023-11-14 22:25:28 +00:00
tail_log.py Issue113185 (#113523) 2023-11-14 22:25:28 +00:00