remove allow-untyped-defs from torch/_C/_dynamo/eval_frame.pyi (#144655)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/144655
Approved by: https://github.com/StrongerXi
This commit is contained in:
bobrenjc93
2025-01-13 08:20:51 -08:00
committed by PyTorch MergeBot
parent 18deff0262
commit 80c286cbec

View File

@ -1,4 +1,3 @@
# mypy: allow-untyped-defs
import types
from typing import Dict, NewType, Tuple
@ -21,12 +20,12 @@ def set_guard_error_hook(hook: DynamoGuardHook) -> None: ...
def raise_sigtrap() -> None: ...
class _CacheEntry:
def check_fn(self, *args, **kwargs): ...
def check_fn(self, *args: object, **kwargs: object) -> bool: ...
code: types.CodeType
next: _CacheEntry | None
class _ExtraState:
def invalidate(self, cache_entry: _CacheEntry, guard_manager: object): ...
def invalidate(self, cache_entry: _CacheEntry, guard_manager: object) -> None: ...
# This is an object that encapsulates the Python FrameType, and exposes
# properties Dynamo cares about for a frame.