[BE][PYFMT] migrate PYFMT for torch.{distributed,distributions} to ruff format (#144547)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/144547
Approved by: https://github.com/kwen2501
This commit is contained in:
Xuehai Pan
2025-02-28 11:10:58 +08:00
committed by PyTorch MergeBot
parent 4e160d5fd9
commit 995df34b19
143 changed files with 920 additions and 774 deletions

View File

@ -40,8 +40,9 @@ def worker_main() -> Generator[None, None, None]:
def main():
pass
if __name__=="__main__":
main()
if __name__ == "__main__":
main()
"""
with ExitStack() as stack: