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 17:51:31 +01:00
committed by GitHub
parent 9bb38130cb
commit 8fcaaf6a16
944 changed files with 9490 additions and 10121 deletions

View File

@@ -20,7 +20,6 @@ Args:
import subprocess
import sys
from typing import Optional
import regex as re
@@ -96,8 +95,8 @@ def group_files(changed_files: list[str]) -> dict[str, list[str]]:
def mypy(
targets: list[str],
python_version: Optional[str],
follow_imports: Optional[str],
python_version: str | None,
follow_imports: str | None,
file_group: str,
) -> int:
"""