[BE][c10d/Store]add check in pyi (#155855) (#155865)

Summary:

"check" is already binded https://fburl.com/code/9lx1zf9o
which is also documented in https://docs.pytorch.org/docs/stable/distributed.html
add it to pyi for type checking

Test Plan:
skip

Rollback Plan:

Differential Revision: D76547457

Pull Request resolved: https://github.com/pytorch/pytorch/pull/155865
Approved by: https://github.com/fduwjj
This commit is contained in:
Chang Pan
2025-06-13 15:39:27 +00:00
committed by PyTorch MergeBot
parent bee93f9f0d
commit a5938ff431

View File

@ -186,6 +186,7 @@ class Store:
def set(self, key: str, value: str): ...
def get(self, key: str) -> bytes: ...
def add(self, key: str, value: int) -> int: ...
def check(self, keys: list[str]) -> bool: ...
def compare_set(
self,
key: str,