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:
co-authored by
lucast2021
parent
f30581c518
commit
e51719ae72
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user