mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-15 01:45:02 +08:00
[Docs] Fix griffe warning in base_static_graph.py (#25018)
Signed-off-by: windsonsea <haifeng.yao@daocloud.io>
This commit is contained in:
parent
6c47f6bfa4
commit
0fb2551c23
@ -12,8 +12,13 @@ class AbstractStaticGraphWrapper(Protocol):
|
|||||||
to be captured as a static graph.
|
to be captured as a static graph.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, runnable: Callable, vllm_config: VllmConfig,
|
def __init__(
|
||||||
runtime_mode: CUDAGraphMode, **kwargs):
|
self,
|
||||||
|
runnable: Callable[..., Any],
|
||||||
|
vllm_config: VllmConfig,
|
||||||
|
runtime_mode: CUDAGraphMode,
|
||||||
|
**kwargs: Any,
|
||||||
|
) -> None:
|
||||||
"""
|
"""
|
||||||
Initializes the StaticGraphWrapper class with graph capturing and
|
Initializes the StaticGraphWrapper class with graph capturing and
|
||||||
execution-related configurations.
|
execution-related configurations.
|
||||||
@ -31,7 +36,7 @@ class AbstractStaticGraphWrapper(Protocol):
|
|||||||
"""
|
"""
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def __call__(self, *args, **kwargs) -> Any:
|
def __call__(self, *args: Any, **kwargs: Any) -> Any:
|
||||||
"""
|
"""
|
||||||
Executes the wrapped callable.
|
Executes the wrapped callable.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user