aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside-tools/deploy_lib/android/android_config.py
diff options
context:
space:
mode:
authorAdrian Herrmann <adrian.herrmann@qt.io>2024-06-06 10:59:31 +0200
committerAdrian Herrmann <adrian.herrmann@qt.io>2024-06-20 16:10:46 +0000
commitba2582125f6c9d470d3a5f4e1e61666de9101e0e (patch)
treecb04e0b4a90e02e0d6026309447fbcf08a8e00a0 /sources/pyside-tools/deploy_lib/android/android_config.py
parent7bb9c0e2f81ec474bf98690b4f90f195a6ea27c8 (diff)
Use modern typing syntax
We can already use the modern typing syntax introduced with Python 3.10 in 3.9 via future statement definitions, even before we raise the minimum Python version to 3.10. Note that direct expressions with "|" don't work yet. Task-number: PYSIDE-2786 Change-Id: Ie36c140fc960328322502ea29cf6868805a7c558 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside-tools/deploy_lib/android/android_config.py')
-rw-r--r--sources/pyside-tools/deploy_lib/android/android_config.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/sources/pyside-tools/deploy_lib/android/android_config.py b/sources/pyside-tools/deploy_lib/android/android_config.py
index 7e39a2dbe..4cca7dfb6 100644
--- a/sources/pyside-tools/deploy_lib/android/android_config.py
+++ b/sources/pyside-tools/deploy_lib/android/android_config.py
@@ -8,7 +8,6 @@ import logging
import zipfile
import xml.etree.ElementTree as ET
-from typing import List
from pathlib import Path
from pkginfo import Wheel
@@ -27,7 +26,7 @@ class AndroidConfig(Config):
"""
def __init__(self, config_file: Path, source_file: Path, python_exe: Path, dry_run: bool,
android_data, existing_config_file: bool = False,
- extra_ignore_dirs: List[str] = None):
+ extra_ignore_dirs: list[str] = None):
super().__init__(config_file=config_file, source_file=source_file, python_exe=python_exe,
dry_run=dry_run, existing_config_file=existing_config_file)
@@ -336,7 +335,7 @@ class AndroidConfig(Config):
return dependent_modules
- def _find_and_set_dependency_files(self) -> List[zipfile.Path]:
+ def _find_and_set_dependency_files(self) -> list[zipfile.Path]:
"""
Based on `modules`, returns the Qt6{module}_{arch}-android-dependencies.xml file, which
contains the various dependencies of the module, like permissions, plugins etc
@@ -385,7 +384,7 @@ class AndroidConfig(Config):
return list(local_libs), list(plugins)
- def _find_plugin_dependencies(self, dependent_plugins: List[str]):
+ def _find_plugin_dependencies(self, dependent_plugins: list[str]):
# The `bundled` element in the dependency xml files points to the folder where
# additional dependencies for the application exists. Inspecting the depenency files
# in android, this always points to the specific Qt plugin dependency folder.