Skip to content

Commit

Permalink
Fix typehint
Browse files Browse the repository at this point in the history
  • Loading branch information
sadra-barikbin committed Feb 28, 2025
1 parent 7dbca9f commit 3240160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ignite/distributed/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ def download_dataset():
barrier()


def _rank_not_in_group(group: Optional[dist.ProcessGroup | "hvd.ProcessSet"]) -> bool:
def _rank_not_in_group(group: Optional[Union[Any, List[int]]]) -> bool:
"""Check if the current process's rank is not in a given group."""
if has_hvd_support and isinstance(group, hvd.common.process_sets.ProcessSet):
return group.included()
Expand Down

0 comments on commit 3240160

Please sign in to comment.