Add pydocstyle to the ruff rules (#52136)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Signed-off-by: Harry Mellor <hej.mellor@gmail.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
804e5377aa
commit
8c1557a79c
@@ -85,6 +85,7 @@ def get_attn_spec_kind(
|
||||
|
||||
Returns:
|
||||
The ``KVCacheSpecKind`` the layer maps to.
|
||||
|
||||
"""
|
||||
from vllm.v1.kv_cache_interface import KVCacheSpecKind
|
||||
|
||||
@@ -115,7 +116,6 @@ def get_attn_backend(
|
||||
has_sliding_window: bool = False,
|
||||
) -> type[AttentionBackend]:
|
||||
"""Selects which attention backend to use and lazily imports it."""
|
||||
|
||||
if kv_cache_dtype is not None:
|
||||
valid_cache_dtypes = get_args(CacheDType)
|
||||
assert kv_cache_dtype in valid_cache_dtypes, (
|
||||
|
||||
Reference in New Issue
Block a user