[Docs] Fix griffe warning in base_static_graph.py (#25018)

Signed-off-by: windsonsea <haifeng.yao@daocloud.io>
This commit is contained in:
Michael Yao
2025-09-17 08:49:19 +00:00
committed by GitHub
parent 6c47f6bfa4
commit 0fb2551c23
+8 -3
View File
@@ -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.