pytorch/torch/_dynamo/hooks.py
Edward Z. Yang 7abd035b2f Add missing mypy-nofollow.ini (#90179)
I'm not sure how lintrunner worked without this lol.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

Pull Request resolved: https://github.com/pytorch/pytorch/pull/90179
Approved by: https://github.com/albanD, https://github.com/voznesenskym
2022-12-08 01:05:12 +00:00

10 lines
250 B
Python

import dataclasses
from typing import Callable, Optional, Set, Tuple
@dataclasses.dataclass
class Hooks:
guard_export_fn: Optional[Callable[[Set["Guard"]], None]] = None
guard_fail_fn: Optional[Callable[[Tuple["GuardFail"]], None]] = None