Skip to content

Commit

Permalink
remove allow-untyped-defs for distributed/rpc/_testing/__init__.py (p…
Browse files Browse the repository at this point in the history
…ytorch#143271)

Pull Request resolved: pytorch#143271
Approved by: https://github.com/aorenste
  • Loading branch information
bobrenjc93 authored and pytorchmergebot committed Dec 16, 2024
1 parent 9706ada commit d745b2b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions torch/distributed/rpc/_testing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# mypy: allow-untyped-defs

import torch


def is_available():
def is_available() -> bool:
return hasattr(torch._C, "_faulty_agent_init")


Expand Down

0 comments on commit d745b2b

Please sign in to comment.