mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
PyTorch MergeBot
parent
9706ada369
commit
d745b2b516
@ -1,9 +1,7 @@
|
||||
# mypy: allow-untyped-defs
|
||||
|
||||
import torch
|
||||
|
||||
|
||||
def is_available():
|
||||
def is_available() -> bool:
|
||||
return hasattr(torch._C, "_faulty_agent_init")
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user