Mypy checking for vllm/compilation (#11496)

Signed-off-by: lucast2021 <lucast2021@headroyce.org>
Co-authored-by: lucast2021 <lucast2021@headroyce.org>
This commit is contained in:
Lucas Tucker
2024-12-25 23:04:07 -06:00
committed by GitHub
parent 51a624bf02
commit dbeac95dbb
3 changed files with 9 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
from typing import List
from typing import Any, Dict, List
from torch import fx as fx
@@ -53,7 +53,7 @@ class PostGradPassManager:
assert isinstance(pass_, InductorPass)
self.passes.append(pass_)
def __getstate__(self):
def __getstate__(self) -> Dict[str, List[Any]]:
"""
Custom pickling for the pass manager, as some passes cannot be pickled.
Pickling occurs because the pass manager is set as the value of