override subclass attribute type when we know it is not None

pull/12839/head
Eli Schwartz 11 months ago
parent 6be1262cc9
commit dabe7b16d9
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 2
      mesonbuild/dependencies/qt.py

@ -120,6 +120,7 @@ class _QtBase:
clib_compiler: T.Union['MissingCompiler', 'Compiler']
env: 'Environment'
libexecdir: T.Optional[str] = None
version: str
def __init__(self, name: str, kwargs: T.Dict[str, T.Any]):
self.name = name
@ -245,6 +246,7 @@ class QmakeQtDependency(_QtBase, ConfigToolDependency, metaclass=abc.ABCMeta):
"""Find Qt using Qmake as a config-tool."""
version: str
version_arg = '-v'
def __init__(self, name: str, env: 'Environment', kwargs: T.Dict[str, T.Any]):

Loading…
Cancel
Save