diff options
author | Eli Schwartz <eschwartz93@gmail.com> | 2023-12-11 01:49:34 -0500 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2024-02-12 18:52:43 -0500 |
commit | dabe7b16d9b2bbb67c93be27723e68978ae80e3b (patch) | |
tree | 6e5d8e8508b54918451e4d5a2ff5f0f5a4a3e85d | |
parent | 6be1262cc9693d00b84f66d95691a29adff7b895 (diff) | |
download | meson-dabe7b16d9b2bbb67c93be27723e68978ae80e3b.zip meson-dabe7b16d9b2bbb67c93be27723e68978ae80e3b.tar.gz meson-dabe7b16d9b2bbb67c93be27723e68978ae80e3b.tar.bz2 |
override subclass attribute type when we know it is not None
-rw-r--r-- | mesonbuild/dependencies/qt.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/dependencies/qt.py b/mesonbuild/dependencies/qt.py index a331187..65b6a58 100644 --- a/mesonbuild/dependencies/qt.py +++ b/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]): |