Skip to content

Commit 413af46

Browse files
committed
[LINT] pre-commit lint
Signed-off-by: Csrayz <[email protected]>
1 parent af40bb2 commit 413af46

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

tests/ut/core/test_schedule_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def test_initialize_from_config_with_override(self):
6666
self.assertEqual(ascend_config.encoder_cache_size, 2048)
6767
self.assertEqual(ascend_config.max_long_partial_prefills, 1)
6868
self.assertEqual(ascend_config.long_prefill_token_threshold, 512)
69+
6970
def test_not_implemented_policy(self):
7071
with self.assertRaises(NotImplementedError) as context:
7172
AscendSchedulerConfig.initialize_from_config(

tests/ut/core/test_scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def test_concurrent_partial_prefills_schedule(self):
268268
# Test initial scheduling
269269
output = scheduler.schedule()
270270
self.assertEqual(len(output.scheduled_new_reqs),
271-
scheduler.scheduler_config.max_long_partial_prefills)
271+
scheduler.scheduler_config.max_long_partial_prefills)
272272
self.assertEqual(output.scheduled_cached_reqs.num_reqs, 0)
273273
self.assertEqual(len(output.finished_req_ids), 0)
274274

vllm_ascend/core/schedule_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@
1616
#
1717

1818
from dataclasses import dataclass, fields
19-
from typing import Optional, Type, Union
19+
from typing import Type, Union
2020

2121
from vllm.config import SchedulerConfig
2222

2323
MAX_INT = 2147483647
2424

25+
2526
@dataclass
2627
class AscendSchedulerConfig(SchedulerConfig):
2728
enable_chunked_prefill: bool = False

0 commit comments

Comments
 (0)