remove allow-untyped-defs for distributed/rpc/_testing/__init__.py (#143271)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/143271
Approved by: https://github.com/aorenste
This commit is contained in:
bobrenjc93
2024-12-15 15:48:39 -08:00
committed by PyTorch MergeBot
parent 9706ada369
commit d745b2b516

View File

@ -1,9 +1,7 @@
# mypy: allow-untyped-defs
import torch
def is_available():
def is_available() -> bool:
return hasattr(torch._C, "_faulty_agent_init")