Skip to content

Commit

Permalink
[Build][Bugfix] Using the correct type hint (#10866)
Browse files Browse the repository at this point in the history
Signed-off-by: Gregory Shtrasberg <[email protected]>
  • Loading branch information
gshtras authored Dec 3, 2024
1 parent 7c32b68 commit a061fe6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vllm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1540,9 +1540,9 @@ def __len__(self):
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]
Expand Down

0 comments on commit a061fe6

Please sign in to comment.