mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Add missing TypeIs to torch/_inductor/ir.py (#164489)
This should be a TypeIs here Pull Request resolved: https://github.com/pytorch/pytorch/pull/164489 Approved by: https://github.com/mlazos
This commit is contained in:
committed by
PyTorch MergeBot
parent
15d726005d
commit
9eb89a4ad5
@ -214,7 +214,7 @@ _NodeOrNodes: TypeAlias = Union[
|
||||
]
|
||||
|
||||
|
||||
def _is_static(x: object) -> bool:
|
||||
def _is_static(x: object) -> TypeIs[Union[int, Integer]]:
|
||||
return isinstance(x, (int, Integer))
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user