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-26 05:04:07 +00:00
committed by GitHub
co-authored by lucast2021
parent 51a624bf02
commit dbeac95dbb
3 changed files with 9 additions and 8 deletions
+2 -2
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