Update Optional[x] -> x | None and Union[x, y] to x | y (#26633)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Harry Mellor
2025-10-12 09:51:31 -07:00
committed by GitHub
parent 9bb38130cb
commit 8fcaaf6a16
944 changed files with 9490 additions and 10121 deletions
+1 -2
View File
@@ -3,7 +3,6 @@
import json
import os
from typing import Optional
import pytest
@@ -30,7 +29,7 @@ def set_test_environment():
dummy_hf_overrides = {"num_layers": 4, "num_hidden_layers": 4}
def can_initialize(model: str, extra_args: Optional[list[str]] = None):
def can_initialize(model: str, extra_args: list[str] | None = None):
# Server arguments
extra_args = extra_args if extra_args is not None else []
server_args = [