aboutsummaryrefslogtreecommitdiffstats
path: root/examples/serialport
diff options
context:
space:
mode:
authorChristian Tismer <[email protected]>2024-06-20 13:38:14 +0200
committerChristian Tismer <[email protected]>2024-06-20 13:57:34 +0200
commit50061290756323ff339bd0473e67117c8191d130 (patch)
treefb8caaaddcafc0abe0958d24f9e79ca9a480c057 /examples/serialport
parent2b77370de90e9a342b3d00f6bb5c44e70579b458 (diff)
Python-3.10: Allow the new syntax for Python 3.9
Add a future statement to all Python source files. Task-number: PYSIDE-2786 Change-Id: Icd6688c7795a9e16fdcaa829686d57792df27690 Reviewed-by: Adrian Herrmann <[email protected]>
Diffstat (limited to 'examples/serialport')
-rw-r--r--examples/serialport/terminal/console.py1
-rw-r--r--examples/serialport/terminal/main.py1
-rw-r--r--examples/serialport/terminal/mainwindow.py1
-rw-r--r--examples/serialport/terminal/settingsdialog.py1
4 files changed, 4 insertions, 0 deletions
diff --git a/examples/serialport/terminal/console.py b/examples/serialport/terminal/console.py
index 125951374..bedb1ed96 100644
--- a/examples/serialport/terminal/console.py
+++ b/examples/serialport/terminal/console.py
@@ -1,5 +1,6 @@
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+from __future__ import annotations
from PySide6.QtCore import Qt, Signal, Slot
from PySide6.QtGui import QPalette
diff --git a/examples/serialport/terminal/main.py b/examples/serialport/terminal/main.py
index 0d2ce0a01..feff5da1a 100644
--- a/examples/serialport/terminal/main.py
+++ b/examples/serialport/terminal/main.py
@@ -1,5 +1,6 @@
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+from __future__ import annotations
import sys
diff --git a/examples/serialport/terminal/mainwindow.py b/examples/serialport/terminal/mainwindow.py
index bdfb0fb0e..c6cf95d29 100644
--- a/examples/serialport/terminal/mainwindow.py
+++ b/examples/serialport/terminal/mainwindow.py
@@ -1,5 +1,6 @@
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+from __future__ import annotations
from PySide6.QtCore import QIODeviceBase, Slot
from PySide6.QtWidgets import QLabel, QMainWindow, QMessageBox
diff --git a/examples/serialport/terminal/settingsdialog.py b/examples/serialport/terminal/settingsdialog.py
index c9373d5b0..cc8bbb2aa 100644
--- a/examples/serialport/terminal/settingsdialog.py
+++ b/examples/serialport/terminal/settingsdialog.py
@@ -1,5 +1,6 @@
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+from __future__ import annotations
import sys