simplify type annotation

pull/10810/head
Eli Schwartz 2 years ago
parent ab20eb5bbc
commit 8277a1aba8
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 2
      mesonbuild/compilers/detect.py

@ -834,7 +834,7 @@ def detect_cs_compiler(env: 'Environment', for_machine: MachineChoice) -> Compil
continue continue
version = search_version(out) version = search_version(out)
cls: T.Union[T.Type[cs.MonoCompiler], T.Type[cs.VisualStudioCsCompiler]] cls: T.Type[cs.CsCompiler]
if 'Mono' in out: if 'Mono' in out:
cls = cs.MonoCompiler cls = cs.MonoCompiler
elif "Visual C#" in out: elif "Visual C#" in out:

Loading…
Cancel
Save