Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
0f0926b4
Unverified
Commit
0f0926b4
authored
May 28, 2025
by
Cyrus Leung
Committed by
GitHub
May 28, 2025
Browse files
[Deprecation] Remove unused sync methods in `async_timeout` (#18792)
Signed-off-by:
DarkLight1337
<
tlleungac@connect.ust.hk
>
parent
7f2c1a87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
vllm/engine/async_timeout.py
vllm/engine/async_timeout.py
+0
-19
No files found.
vllm/engine/async_timeout.py
View file @
0f0926b4
...
@@ -8,7 +8,6 @@
...
@@ -8,7 +8,6 @@
import
asyncio
import
asyncio
import
enum
import
enum
import
sys
import
sys
import
warnings
from
types
import
TracebackType
from
types
import
TracebackType
from
typing
import
Any
,
Optional
,
Type
from
typing
import
Any
,
Optional
,
Type
...
@@ -66,24 +65,6 @@ else:
...
@@ -66,24 +65,6 @@ else:
else
:
else
:
self
.
update
(
deadline
)
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"
:
async
def
__aenter__
(
self
)
->
"Timeout"
:
self
.
_do_enter
()
self
.
_do_enter
()
return
self
return
self
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment