mypy type checking for vllm/worker (#11418)

Signed-off-by: lucast2021 <lucast2021@headroyce.org>
Co-authored-by: lucast2021 <lucast2021@headroyce.org>
This commit is contained in:
Lucas Tucker
2024-12-23 13:55:49 +00:00
committed by GitHub
co-authored by lucast2021
parent f30581c518
commit e51719ae72
3 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -452,7 +452,7 @@ class WorkerWrapperBase:
self.worker = worker_class(*args, **kwargs)
assert self.worker is not None
def execute_method(self, method, *args, **kwargs):
def execute_method(self, method: str, *args, **kwargs):
try:
target = self if self.worker is None else self.worker
executor = getattr(target, method)