aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/qt5.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/modules/qt5.py')
-rw-r--r--mesonbuild/modules/qt5.py12
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)