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:
Aaron Gokaslan
2025-10-03 19:34:16 +00:00
committed by PyTorch MergeBot
parent 15d726005d
commit 9eb89a4ad5

View File

@ -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))