Migrate from Tuple -> tuple in torch/distributed (#144258)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/144258
Approved by: https://github.com/aorenste
This commit is contained in:
bobrenjc93
2025-01-09 20:17:01 -08:00
committed by PyTorch MergeBot
parent 184549b2d7
commit 08be9ec312
103 changed files with 468 additions and 553 deletions

View File

@ -320,7 +320,7 @@ class _RoleInstanceInfo:
return -1
@staticmethod
def find_role_boundaries(roles_infos: List, role: str) -> Tuple[int, int]:
def find_role_boundaries(roles_infos: List, role: str) -> tuple[int, int]:
start_idx, end_idx = -1, -1
for idx, role_info in enumerate(roles_infos):
if role_info.role == role: