diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2023-01-06 11:39:54 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2023-01-10 09:53:22 -0800 |
commit | 6ed6c8cdbaed1976f47e685b66d032e3174d5e89 (patch) | |
tree | e85f1af4f04700db5717affd526db71d606f98c5 /mesonbuild/modules/qt5.py | |
parent | e8a88f53205d5d9092ccd16faa5cf89af72d2951 (diff) | |
download | meson-6ed6c8cdbaed1976f47e685b66d032e3174d5e89.zip meson-6ed6c8cdbaed1976f47e685b66d032e3174d5e89.tar.gz meson-6ed6c8cdbaed1976f47e685b66d032e3174d5e89.tar.bz2 |
modules: fully type the Qt* modules
The base module is fully typed, but the numbered version are not, though
it's pretty trivial to do so.
Diffstat (limited to 'mesonbuild/modules/qt5.py')
-rw-r--r-- | mesonbuild/modules/qt5.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mesonbuild/modules/qt5.py b/mesonbuild/modules/qt5.py index 3933ea0..d9f0a5e 100644 --- a/mesonbuild/modules/qt5.py +++ b/mesonbuild/modules/qt5.py @@ -12,17 +12,23 @@ # See the License for the specific language governing permissions and # limitations under the License. +from __future__ import annotations +import typing as T + from .qt import QtBaseModule from . import ModuleInfo +if T.TYPE_CHECKING: + from ..interpreter import Interpreter + class Qt5Module(QtBaseModule): INFO = ModuleInfo('qt5') - def __init__(self, interpreter): + def __init__(self, interpreter: Interpreter): QtBaseModule.__init__(self, interpreter, qt_version=5) -def initialize(*args, **kwargs): - return Qt5Module(*args, **kwargs) +def initialize(interp: Interpreter) -> Qt5Module: + return Qt5Module(interp) |