mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
PyTorch MergeBot
parent
18deff0262
commit
80c286cbec
@ -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.
|
||||
|
Reference in New Issue
Block a user