Update deprecated type hinting in vllm/adapter_commons (#18073)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Harry Mellor
2025-05-13 08:32:51 -07:00
committed by GitHub
parent 19324d660c
commit 0b217da646
5 changed files with 18 additions and 20 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0
from abc import ABC, abstractmethod
from typing import Any, Optional, Set
from typing import Any, Optional
import torch
@@ -17,7 +17,7 @@ class AbstractWorkerManager(ABC):
raise NotImplementedError
@abstractmethod
def set_active_adapters(self, requests: Set[Any],
def set_active_adapters(self, requests: set[Any],
mapping: Optional[Any]) -> None:
raise NotImplementedError
@@ -34,5 +34,5 @@ class AbstractWorkerManager(ABC):
raise NotImplementedError
@abstractmethod
def list_adapters(self) -> Set[int]:
def list_adapters(self) -> set[int]:
raise NotImplementedError