Skip to content

Commit 0f0926b

Browse files
[Deprecation] Remove unused sync methods in async_timeout (#18792)
Signed-off-by: DarkLight1337 <[email protected]>
1 parent 7f2c1a8 commit 0f0926b

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

vllm/engine/async_timeout.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import asyncio
99
import enum
1010
import sys
11-
import warnings
1211
from types import TracebackType
1312
from typing import Any, Optional, Type
1413

@@ -66,24 +65,6 @@ def __init__(self, deadline: Optional[float],
6665
else:
6766
self.update(deadline)
6867

69-
def __enter__(self) -> "Timeout":
70-
warnings.warn(
71-
"with timeout() is deprecated, use async with timeout()",
72-
DeprecationWarning,
73-
stacklevel=2,
74-
)
75-
self._do_enter()
76-
return self
77-
78-
def __exit__(
79-
self,
80-
exc_type: Optional[Type[BaseException]],
81-
exc_val: Optional[BaseException],
82-
exc_tb: Optional[TracebackType],
83-
) -> Optional[bool]:
84-
self._do_exit(exc_type)
85-
return None
86-
8768
async def __aenter__(self) -> "Timeout":
8869
self._do_enter()
8970
return self

0 commit comments

Comments
 (0)