aboutsummaryrefslogtreecommitdiffstats
path: root/examples/webchannel/standalone
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/webchannel/standalone
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/webchannel/standalone')
-rw-r--r--examples/webchannel/standalone/core.py1
-rw-r--r--examples/webchannel/standalone/dialog.py1
-rw-r--r--examples/webchannel/standalone/main.py1
-rw-r--r--examples/webchannel/standalone/websocketclientwrapper.py1
-rw-r--r--examples/webchannel/standalone/websockettransport.py1
5 files changed, 5 insertions, 0 deletions
diff --git a/examples/webchannel/standalone/core.py b/examples/webchannel/standalone/core.py
index 2d0cb0286..987a4ee1a 100644
--- a/examples/webchannel/standalone/core.py
+++ b/examples/webchannel/standalone/core.py
@@ -1,6 +1,7 @@
# Copyright (C) 2017 Klarälvdalens Datakonsult AB, a KDAB Group company, [email protected], author Milian Wolff <[email protected]>
# 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 QObject, Signal, Slot
diff --git a/examples/webchannel/standalone/dialog.py b/examples/webchannel/standalone/dialog.py
index 7f2413e6c..27cef86a7 100644
--- a/examples/webchannel/standalone/dialog.py
+++ b/examples/webchannel/standalone/dialog.py
@@ -1,6 +1,7 @@
# Copyright (C) 2017 Klarälvdalens Datakonsult AB, a KDAB Group company, [email protected], author Milian Wolff <[email protected]>
# 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 Signal, Slot
diff --git a/examples/webchannel/standalone/main.py b/examples/webchannel/standalone/main.py
index 8c04aa64f..8459b1a92 100644
--- a/examples/webchannel/standalone/main.py
+++ b/examples/webchannel/standalone/main.py
@@ -1,6 +1,7 @@
# Copyright (C) 2016 Klarälvdalens Datakonsult AB, a KDAB Group company, [email protected], author Milian Wolff <[email protected]>
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+from __future__ import annotations
import os
diff --git a/examples/webchannel/standalone/websocketclientwrapper.py b/examples/webchannel/standalone/websocketclientwrapper.py
index 00b410891..a14672f25 100644
--- a/examples/webchannel/standalone/websocketclientwrapper.py
+++ b/examples/webchannel/standalone/websocketclientwrapper.py
@@ -1,6 +1,7 @@
# Copyright (C) 2017 Klarälvdalens Datakonsult AB, a KDAB Group company, [email protected], author Milian Wolff <[email protected]>
# 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 QObject, Signal, Slot
diff --git a/examples/webchannel/standalone/websockettransport.py b/examples/webchannel/standalone/websockettransport.py
index ab60e8448..96e9b822a 100644
--- a/examples/webchannel/standalone/websockettransport.py
+++ b/examples/webchannel/standalone/websockettransport.py
@@ -1,6 +1,7 @@
# Copyright (C) 2017 Klarälvdalens Datakonsult AB, a KDAB Group company, [email protected], author Milian Wolff <[email protected]>
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+from __future__ import annotations
from PySide6.QtWebChannel import QWebChannelAbstractTransport
from PySide6.QtCore import QByteArray, QJsonDocument, Slot