refactor: add type hints to scheduler mixins (#15913)

This commit is contained in:
Cheng Wan
2025-12-26 16:50:07 -08:00
committed by GitHub
parent 93495dcac9
commit 988b14ca0e
5 changed files with 42 additions and 22 deletions
@@ -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.