diff options
| author | Christian Tismer <tismer@stackless.com> | 2024-06-20 13:38:14 +0200 |
|---|---|---|
| committer | Christian Tismer <tismer@stackless.com> | 2024-06-20 13:57:34 +0200 |
| commit | 50061290756323ff339bd0473e67117c8191d130 (patch) | |
| tree | fb8caaaddcafc0abe0958d24f9e79ca9a480c057 /examples/quick3d | |
| 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 <adrian.herrmann@qt.io>
Diffstat (limited to 'examples/quick3d')
| -rw-r--r-- | examples/quick3d/customgeometry/examplepoint.py | 1 | ||||
| -rw-r--r-- | examples/quick3d/customgeometry/exampletriangle.py | 1 | ||||
| -rw-r--r-- | examples/quick3d/customgeometry/main.py | 1 | ||||
| -rw-r--r-- | examples/quick3d/intro/main.py | 1 | ||||
| -rw-r--r-- | examples/quick3d/proceduraltexture/gradienttexture.py | 1 | ||||
| -rw-r--r-- | examples/quick3d/proceduraltexture/main.py | 1 |
6 files changed, 6 insertions, 0 deletions
diff --git a/examples/quick3d/customgeometry/examplepoint.py b/examples/quick3d/customgeometry/examplepoint.py index 0360806ae..6f0bfe0e1 100644 --- a/examples/quick3d/customgeometry/examplepoint.py +++ b/examples/quick3d/customgeometry/examplepoint.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 random diff --git a/examples/quick3d/customgeometry/exampletriangle.py b/examples/quick3d/customgeometry/exampletriangle.py index 854430c46..0f9e025a0 100644 --- a/examples/quick3d/customgeometry/exampletriangle.py +++ b/examples/quick3d/customgeometry/exampletriangle.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 numpy as np from PySide6.QtCore import Property, Signal diff --git a/examples/quick3d/customgeometry/main.py b/examples/quick3d/customgeometry/main.py index 148330d91..985943208 100644 --- a/examples/quick3d/customgeometry/main.py +++ b/examples/quick3d/customgeometry/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 os diff --git a/examples/quick3d/intro/main.py b/examples/quick3d/intro/main.py index 827434038..a35ec6a45 100644 --- a/examples/quick3d/intro/main.py +++ b/examples/quick3d/intro/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 os import sys diff --git a/examples/quick3d/proceduraltexture/gradienttexture.py b/examples/quick3d/proceduraltexture/gradienttexture.py index a577f7ebd..a02849f1c 100644 --- a/examples/quick3d/proceduraltexture/gradienttexture.py +++ b/examples/quick3d/proceduraltexture/gradienttexture.py @@ -1,5 +1,6 @@ # Copyright (C) 2023 The Qt Company Ltd. # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +from __future__ import annotations from PySide6.QtCore import Signal, Property, QSize from PySide6.QtGui import QColor diff --git a/examples/quick3d/proceduraltexture/main.py b/examples/quick3d/proceduraltexture/main.py index a732cc015..292acfe61 100644 --- a/examples/quick3d/proceduraltexture/main.py +++ b/examples/quick3d/proceduraltexture/main.py @@ -1,5 +1,6 @@ # Copyright (C) 2023 The Qt Company Ltd. # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +from __future__ import annotations from PySide6.QtGui import QGuiApplication from PySide6.QtQml import QQmlApplicationEngine |
