aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/qt6.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2023-01-06 11:39:54 -0800
committerDylan Baker <dylan@pnwbakers.com>2023-01-10 09:53:22 -0800
commit6ed6c8cdbaed1976f47e685b66d032e3174d5e89 (patch)
treee85f1af4f04700db5717affd526db71d606f98c5 /mesonbuild/modules/qt6.py
parente8a88f53205d5d9092ccd16faa5cf89af72d2951 (diff)
downloadmeson-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/qt6.py')
-rw-r--r--mesonbuild/modules/qt6.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/mesonbuild/modules/qt6.py b/mesonbuild/modules/qt6.py
index 66fc43f..cafc531 100644
--- a/mesonbuild/modules/qt6.py
+++ b/mesonbuild/modules/qt6.py
@@ -12,17 +12,22 @@
# 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 Qt6Module(QtBaseModule):
INFO = ModuleInfo('qt6', '0.57.0')
- def __init__(self, interpreter):
+ def __init__(self, interpreter: Interpreter):
QtBaseModule.__init__(self, interpreter, qt_version=6)
-def initialize(*args, **kwargs):
- return Qt6Module(*args, **kwargs)
+def initialize(interp: Interpreter) -> Qt6Module:
+ return Qt6Module(interp)