Skip to content

Commit a061fe6

Browse files
authored
[Build][Bugfix] Using the correct type hint (#10866)
Signed-off-by: Gregory Shtrasberg <[email protected]>
1 parent 7c32b68 commit a061fe6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vllm/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,9 +1540,9 @@ def __len__(self):
15401540
return len(self._factory)
15411541

15421542

1543-
class ClassRegistry(UserDict[type[T], _V]):
1543+
class ClassRegistry(UserDict[Type[T], _V]):
15441544

1545-
def __getitem__(self, key: type[T]) -> _V:
1545+
def __getitem__(self, key: Type[T]) -> _V:
15461546
for cls in key.mro():
15471547
if cls in self.data:
15481548
return self.data[cls]

0 commit comments

Comments
 (0)