mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00: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:
parent
18deff0262
commit
80c286cbec
1 changed files with 2 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue