refactor: add type hints to scheduler mixins (#15913)
This commit is contained in:
@@ -666,7 +666,7 @@ class SchedulerPPMixin:
|
||||
f"Target latency: {self.length_predictor.target_latency:.2f}ms"
|
||||
)
|
||||
|
||||
def predict_next_chunk_size(self: "Scheduler", history_len: int) -> Optional[int]:
|
||||
def predict_next_chunk_size(self: Scheduler, history_len: int) -> Optional[int]:
|
||||
"""
|
||||
Predict next chunk size dynamically based on current history length.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user