aedi: make mypy linter happy

state.py:112: error: Item "None" of "Match[str] | None" has no attribute "group"  [union-attr]
This commit is contained in:
alexey.lysiuk 2023-12-15 16:40:05 +02:00
parent e8d8bba6ab
commit acfcef3683

View file

@ -109,6 +109,8 @@ class BuildState:
version_output = subprocess.run(('clang', '--version'), check=True, capture_output=True)
version_match = re.search(r'\(clang-([\d.]+)\)', version_output.stdout.decode('ascii'))
if version_match:
version = StrictVersion(version_match.group(1))
if version.major == 1500 and version.minor == 0: