Skip to content

Commit

Permalink
bugfix: fix type annotation error in python3.8 (#656)
Browse files Browse the repository at this point in the history
As mentioned in #653,
there is a type annotation error in cascade.py because we use `list`
which is builtin since python 3.9 (related PR
#486).
  • Loading branch information
yzh119 authored Dec 12, 2024
1 parent a693507 commit 4313654
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flashinfer/cascade.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,10 @@ def __init__(
float_workspace_buffer: torch.Tensor,
kv_layout: str = "NHD",
use_cuda_graph: bool = False,
qo_indptr_buf_arr: Optional[list[torch.Tensor]] = None,
paged_kv_indptr_buf_arr: Optional[list[torch.Tensor]] = None,
paged_kv_indices_buf_arr: Optional[list[torch.Tensor]] = None,
paged_kv_last_page_len_buf_arr: Optional[list[torch.Tensor]] = None,
qo_indptr_buf_arr: Optional[List[torch.Tensor]] = None,
paged_kv_indptr_buf_arr: Optional[List[torch.Tensor]] = None,
paged_kv_indices_buf_arr: Optional[List[torch.Tensor]] = None,
paged_kv_last_page_len_buf_arr: Optional[List[torch.Tensor]] = None,
) -> None:
r"""Constructor of :class:`MultiLevelCascadeAttentionWrapper`.
Expand Down

0 comments on commit 4313654

Please sign in to comment.