[Typing] Fix Sequence type GenericAlias only available after Python 3.9. (#4092)
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
"""A block manager that manages token blocks."""
|
||||
from abc import ABC, abstractmethod
|
||||
from collections.abc import Sequence as GenericSequence
|
||||
from itertools import count, takewhile
|
||||
from os.path import commonprefix
|
||||
from typing import Dict, List, Optional, Set
|
||||
from typing import Dict, List, Optional
|
||||
from typing import Sequence as GenericSequence
|
||||
from typing import Set
|
||||
|
||||
from vllm.block import BlockTable, PhysicalTokenBlock
|
||||
from vllm.core.evictor import EvictionPolicy, Evictor, make_evictor
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"""A block manager that manages token blocks."""
|
||||
from collections.abc import Sequence as GenericSequence
|
||||
from typing import Dict, List, Optional
|
||||
from typing import Sequence as GenericSequence
|
||||
|
||||
from vllm.core.block.block_table import BlockTable
|
||||
from vllm.core.block.cpu_gpu_block_allocator import CpuGpuBlockAllocator
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import enum
|
||||
from abc import ABC, abstractmethod
|
||||
from collections.abc import Sequence as GenericSequence
|
||||
from typing import Dict, List
|
||||
from typing import Sequence as GenericSequence
|
||||
|
||||
from vllm.sequence import Sequence, SequenceGroup
|
||||
|
||||
|
||||
Reference in New Issue
Block a user