From 0f0926b43fb5445e2468034eb0bc8076cdd6af86 Mon Sep 17 00:00:00 2001 From: Cyrus Leung Date: Wed, 28 May 2025 15:08:48 +0800 Subject: [PATCH] [Deprecation] Remove unused sync methods in `async_timeout` (#18792) Signed-off-by: DarkLight1337 --- vllm/engine/async_timeout.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/vllm/engine/async_timeout.py b/vllm/engine/async_timeout.py index aa54c0693941f..94674262bcfe3 100644 --- a/vllm/engine/async_timeout.py +++ b/vllm/engine/async_timeout.py @@ -8,7 +8,6 @@ import asyncio import enum import sys -import warnings from types import TracebackType from typing import Any, Optional, Type @@ -66,24 +65,6 @@ else: else: self.update(deadline) - def __enter__(self) -> "Timeout": - warnings.warn( - "with timeout() is deprecated, use async with timeout()", - DeprecationWarning, - stacklevel=2, - ) - self._do_enter() - return self - - def __exit__( - self, - exc_type: Optional[Type[BaseException]], - exc_val: Optional[BaseException], - exc_tb: Optional[TracebackType], - ) -> Optional[bool]: - self._do_exit(exc_type) - return None - async def __aenter__(self) -> "Timeout": self._do_enter() return self