aboutsummaryrefslogtreecommitdiffstats
path: root/examples/sql
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sql')
-rw-r--r--examples/sql/books/bookdelegate.py1
-rw-r--r--examples/sql/books/bookwindow.py1
-rw-r--r--examples/sql/books/createdb.py1
-rw-r--r--examples/sql/books/main.py1
-rw-r--r--examples/sql/relationaltablemodel/connection.py1
-rw-r--r--examples/sql/relationaltablemodel/relationaltablemodel.py1
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"""