diff options
author | Christian Tismer <[email protected]> | 2024-06-20 13:38:14 +0200 |
---|---|---|
committer | Christian Tismer <[email protected]> | 2024-06-20 13:57:34 +0200 |
commit | 50061290756323ff339bd0473e67117c8191d130 (patch) | |
tree | fb8caaaddcafc0abe0958d24f9e79ca9a480c057 /examples/sql | |
parent | 2b77370de90e9a342b3d00f6bb5c44e70579b458 (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/sql')
-rw-r--r-- | examples/sql/books/bookdelegate.py | 1 | ||||
-rw-r--r-- | examples/sql/books/bookwindow.py | 1 | ||||
-rw-r--r-- | examples/sql/books/createdb.py | 1 | ||||
-rw-r--r-- | examples/sql/books/main.py | 1 | ||||
-rw-r--r-- | examples/sql/relationaltablemodel/connection.py | 1 | ||||
-rw-r--r-- | examples/sql/relationaltablemodel/relationaltablemodel.py | 1 |
6 files changed, 6 insertions, 0 deletions
diff --git a/examples/sql/books/bookdelegate.py b/examples/sql/books/bookdelegate.py index 78295adf1..742b1fb46 100644 --- a/examples/sql/books/bookdelegate.py +++ b/examples/sql/books/bookdelegate.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 copy from PySide6.QtSql import QSqlRelationalDelegate diff --git a/examples/sql/books/bookwindow.py b/examples/sql/books/bookwindow.py index 7f9e0f94b..6aa82992b 100644 --- a/examples/sql/books/bookwindow.py +++ b/examples/sql/books/bookwindow.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.QtWidgets import (QAbstractItemView, QDataWidgetMapper, QHeaderView, QMainWindow, QMessageBox) diff --git a/examples/sql/books/createdb.py b/examples/sql/books/createdb.py index 5ee0f148e..471148c61 100644 --- a/examples/sql/books/createdb.py +++ b/examples/sql/books/createdb.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.QtSql import QSqlDatabase, QSqlQuery from datetime import date diff --git a/examples/sql/books/main.py b/examples/sql/books/main.py index 025b55884..4b4aee1a3 100644 --- a/examples/sql/books/main.py +++ b/examples/sql/books/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 from PySide6.QtWidgets import QApplication diff --git a/examples/sql/relationaltablemodel/connection.py b/examples/sql/relationaltablemodel/connection.py index 6bfc828c8..61c154ba4 100644 --- a/examples/sql/relationaltablemodel/connection.py +++ b/examples/sql/relationaltablemodel/connection.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 """PySide6 port of the relationaltablemodel example from Qt v6.x""" diff --git a/examples/sql/relationaltablemodel/relationaltablemodel.py b/examples/sql/relationaltablemodel/relationaltablemodel.py index d2efac2dc..520390666 100644 --- a/examples/sql/relationaltablemodel/relationaltablemodel.py +++ b/examples/sql/relationaltablemodel/relationaltablemodel.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 """PySide6 port of the relationaltablemodel example from Qt v6.x""" |