backends/vs: add a missing annotation

pull/9143/head
Dylan Baker 3 years ago committed by Daniel Mensinger
parent 12e5bfbc1c
commit adddb9af21
  1. 2
      mesonbuild/backend/vs2010backend.py

@ -31,7 +31,7 @@ from ..mesonlib import (
)
from ..environment import Environment, build_filename
def autodetect_vs_version(build: T.Optional[build.Build], interpreter: T.Optional[Interpreter]):
def autodetect_vs_version(build: T.Optional[build.Build], interpreter: T.Optional[Interpreter]) -> backends.Backend:
vs_version = os.getenv('VisualStudioVersion', None)
vs_install_dir = os.getenv('VSINSTALLDIR', None)
if not vs_install_dir:

Loading…
Cancel
Save