[lint] Enable Ruff UP037 to drop redundant quoted annotations (#27984)
This commit is contained in:
@@ -43,7 +43,7 @@ class _DummyHarness(CanaryE2EBase):
|
||||
class TestAssertSwaDivergenceObserved(CustomTestCase):
|
||||
def _make_harness(
|
||||
self, log_text_or_sequence
|
||||
) -> tuple[_DummyHarness, "patch._patch[None]"]:
|
||||
) -> tuple[_DummyHarness, patch._patch[None]]:
|
||||
harness = _DummyHarness()
|
||||
harness._stderr_buf = None
|
||||
harness._stdout_buf = None
|
||||
|
||||
@@ -36,8 +36,8 @@ class CustomizedInfoSampler(Sampler):
|
||||
|
||||
def forward(
|
||||
self,
|
||||
logits_output: "LogitsProcessorOutput",
|
||||
sampling_info: "SamplingBatchInfo",
|
||||
logits_output: LogitsProcessorOutput,
|
||||
sampling_info: SamplingBatchInfo,
|
||||
return_logprob: bool,
|
||||
top_logprobs_nums: List[int],
|
||||
token_ids_logprobs: List[List[int]],
|
||||
|
||||
Reference in New Issue
Block a user