Add mypy typing to torch_version.py (#131447)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/131447
Approved by: https://github.com/angelayi
ghstack dependencies: #131434
This commit is contained in:
Oguz Ulgen 2024-07-22 23:59:33 -07:00 committed by PyTorch MergeBot
parent eab1595ce2
commit f93a6a4d31

View File

@ -1,5 +1,3 @@
# mypy: ignore-errors
from typing import Any, Iterable
from torch._vendor.packaging.version import InvalidVersion, Version