mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-07-16 20:07:18 +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)
|
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():
|
for cls in key.mro():
|
||||||
if cls in self.data:
|
if cls in self.data:
|
||||||
return self.data[cls]
|
return self.data[cls]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user