Move type hint to satisfy Python 3.6, 3.7 interpreters (#31932)

This commit is contained in:
Chris Green
2022-08-04 15:48:05 -05:00
committed by GitHub
parent d67ead5978
commit 20de47a1e2

View File

@@ -37,8 +37,8 @@ class WindowsOs(OperatingSystem):
extra_args = {} extra_args = {}
if sys.version_info[:3] >= (3, 6, 0): if sys.version_info[:3] >= (3, 6, 0):
extra_args = {"encoding": "mbcs", "errors": "strict"} extra_args = {"encoding": "mbcs", "errors": "strict"}
paths = subprocess.check_output( paths = subprocess.check_output( # type: ignore[call-overload] # novermin
[ # type: ignore[call-overload] # novermin [
os.path.join(root, "Microsoft Visual Studio", "Installer", "vswhere.exe"), os.path.join(root, "Microsoft Visual Studio", "Installer", "vswhere.exe"),
"-prerelease", "-prerelease",
"-requires", "-requires",