mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-04-02 01:07:04 +08:00
[Build][Bugfix] Using the correct type hint (#10866)
Signed-off-by: Gregory Shtrasberg <Gregory.Shtrasberg@amd.com>
This commit is contained in:
parent
7c32b6861e
commit
a061fe601e
@ -1540,9 +1540,9 @@ class LazyDict(Mapping[str, T], Generic[T]):
|
||||
return len(self._factory)
|
||||
|
||||
|
||||
class ClassRegistry(UserDict[type[T], _V]):
|
||||
class ClassRegistry(UserDict[Type[T], _V]):
|
||||
|
||||
def __getitem__(self, key: type[T]) -> _V:
|
||||
def __getitem__(self, key: Type[T]) -> _V:
|
||||
for cls in key.mro():
|
||||
if cls in self.data:
|
||||
return self.data[cls]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user