Merge pull request #99640 from Repiteo/scons/future-annotations-minimal

SCons: Integrate `annotations` where relevant
This commit is contained in:
Thaddeus Crews
2025-11-24 10:21:34 -06:00
9 changed files with 116 additions and 104 deletions

View File

@ -1,11 +1,11 @@
#!/usr/bin/python3
from __future__ import annotations
import os
import os.path
import shlex
import subprocess
from dataclasses import dataclass
from typing import List, Optional
def find_dotnet_cli():
@ -151,7 +151,7 @@ def find_any_msbuild_tool(mono_prefix):
return None
def run_msbuild(tools: ToolsLocation, sln: str, chdir_to: str, msbuild_args: Optional[List[str]] = None):
def run_msbuild(tools: ToolsLocation, sln: str, chdir_to: str, msbuild_args: list[str] | None = None):
using_msbuild_mono = False
# Preference order: dotnet CLI > Standalone MSBuild > Mono's MSBuild