Skip to content

Commit 5006129

Browse files
committed
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]>
1 parent 2b77370 commit 5006129

File tree

1,289 files changed

+1290
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,289 files changed

+1290
-0
lines changed

build_scripts/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3+
from __future__ import annotations
34

45
PYSIDE = 'pyside6'
56
PYSIDE_MODULE = 'PySide6'

build_scripts/build_info_collector.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2021 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3+
from __future__ import annotations
34

45
import os
56
import platform

build_scripts/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2018 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3+
from __future__ import annotations
34

45
import sys
56
from .log import log, LogLevel

build_scripts/log.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3+
from __future__ import annotations
34

45
import logging
56

build_scripts/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2018 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3+
from __future__ import annotations
34

45
import importlib
56
import os

build_scripts/options.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2018 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3+
from __future__ import annotations
34

45
from setuptools import Command
56

build_scripts/platforms/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# Copyright (C) 2018 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3+
from __future__ import annotations

build_scripts/platforms/linux.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2018 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3+
from __future__ import annotations
34

45
from pathlib import Path
56

build_scripts/platforms/macos.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2018 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3+
from __future__ import annotations
34

45
import fnmatch
56
from pathlib import Path

build_scripts/platforms/unix.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2018 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3+
from __future__ import annotations
34

45
import sys
56
from pathlib import Path

build_scripts/platforms/windows_desktop.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2018 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3+
from __future__ import annotations
34

45
import functools
56
import os

build_scripts/qfp_tool.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2024 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3+
from __future__ import annotations
34

45
import datetime
56
import os

build_scripts/qtinfo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3+
from __future__ import annotations
34

45
import os
56
import subprocess

build_scripts/setup_runner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3+
from __future__ import annotations
34

45
import os
56
import sys

build_scripts/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3+
from __future__ import annotations
34

45
import errno
56
import fnmatch

build_scripts/wheel_files.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3+
from __future__ import annotations
34

45

56
import json

build_scripts/wheel_override.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3+
from __future__ import annotations
34

45

56
import platform

build_scripts/wheel_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3+
from __future__ import annotations
34

45
import time
56
from pathlib import Path

coin_build_instructions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3+
from __future__ import annotations
34
import calendar
45
import datetime
56
import logging

coin_test_instructions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3+
from __future__ import annotations
34
import os
45
import logging
56
import site

create_wheels.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3+
from __future__ import annotations
34

45
import os
56
import platform

examples/3d/simple3d/simple3d.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
"""PySide6 port of the qt3d/simple-cpp example from Qt v5.x"""
56

examples/async/eratosthenes/eratosthenes_asyncio.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
from PySide6.QtCore import (Qt, QObject, Signal, Slot)
56
from PySide6.QtGui import (QColor, QFont, QPalette)

examples/async/eratosthenes/eratosthenes_trio.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
from PySide6.QtCore import (Qt, QEvent, QObject, QTimer, Signal, Slot)
56
from PySide6.QtGui import (QColor, QFont, QPalette)

examples/async/minimal/minimal_asyncio.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
from PySide6.QtCore import Qt
56
from PySide6.QtWidgets import (QApplication, QLabel, QMainWindow, QPushButton, QVBoxLayout, QWidget)

examples/async/minimal/minimal_trio.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
from PySide6.QtCore import (Qt, QEvent, QObject, Signal, Slot)
56
from PySide6.QtWidgets import (QApplication, QLabel, QMainWindow, QPushButton, QVBoxLayout, QWidget)

examples/axcontainer/axviewer/axviewer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
"""PySide6 Active Qt Viewer example"""
56

examples/bluetooth/btscanner/device.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
from PySide6.QtCore import QPoint, Qt, Slot
56
from PySide6.QtGui import QColor

examples/bluetooth/btscanner/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
"""PySide6 port of the bluetooth/btscanner example from Qt v6.x"""
56

examples/bluetooth/btscanner/service.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
from PySide6.QtCore import Slot
56
from PySide6.QtWidgets import QDialog

examples/bluetooth/heartrate_game/bluetoothbaseclass.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
from PySide6.QtCore import QObject, Property, Signal, Slot
56

examples/bluetooth/heartrate_game/connectionhandler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
import sys
56

examples/bluetooth/heartrate_game/devicefinder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34
import sys
45

56
from PySide6.QtBluetooth import (QBluetoothDeviceDiscoveryAgent,

examples/bluetooth/heartrate_game/devicehandler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
import struct
56

examples/bluetooth/heartrate_game/deviceinfo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
import sys
56

examples/bluetooth/heartrate_game/heartrate_global.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34
import os
45
import sys
56

examples/bluetooth/heartrate_game/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
"""PySide6 port of the bluetooth/heartrate-game example from Qt v6.x"""
56

examples/bluetooth/heartrate_server/heartrate_server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
"""PySide6 port of the bluetooth/heartrate-server example from Qt v6.x"""
56

examples/bluetooth/lowenergyscanner/characteristicinfo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
from PySide6.QtCore import QObject, Property, Signal
56
from PySide6.QtBluetooth import QLowEnergyCharacteristic, QBluetoothUuid

examples/bluetooth/lowenergyscanner/device.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34
import warnings
45
from PySide6.QtBluetooth import (QBluetoothDeviceDiscoveryAgent, QLowEnergyController,
56
QBluetoothDeviceInfo, QBluetoothUuid, QLowEnergyService)

examples/bluetooth/lowenergyscanner/deviceinfo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
import sys
56

examples/bluetooth/lowenergyscanner/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
"""PySide6 port of the bluetooth/lowenergyscanner example from Qt v6.x"""
56

examples/bluetooth/lowenergyscanner/serviceinfo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
from PySide6.QtCore import QObject, Property, Signal
56
from PySide6.QtBluetooth import QLowEnergyService

examples/charts/areachart/areachart.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
"""PySide6 port of the areachart example from Qt v6.x"""
56

examples/charts/audio/audio.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
"""PySide6 port of the charts/audio example from Qt v5.x"""
56

examples/charts/barchart/barchart.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
"""PySide6 port of the linechart example from Qt v6.x"""
56

examples/charts/callout/callout.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
"""PySide6 port of the Callout example from Qt v5.x"""
56

examples/charts/chartthemes/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
"""PySide6 port of the Chart Themes example from Qt v5.x"""
56

examples/charts/donutbreakdown/donutbreakdown.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
"""PySide6 port of the Donut Chart Breakdown example from Qt v5.x"""
56

examples/charts/dynamicspline/chart.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
import random
56

examples/charts/dynamicspline/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
"""PySide6 port of the Dynamic Spline example from Qt v5.x"""
56
import sys

examples/charts/legend/legend.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
"""PySide6 port of the Legend example from Qt v5.x"""
56

examples/charts/lineandbar/lineandbar.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
"""PySide6 port of the line/bar example from Qt v5.x"""
56

examples/charts/linechart/linechart.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
"""PySide6 port of the linechart example from Qt v5.x"""
56

examples/charts/logvalueaxis/logvalueaxis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
"""PySide6 port of the Logarithmic Axis Example from Qt v5.x"""
56

examples/charts/memoryusage/memoryusage.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
"""PySide6 Charts example: Simple memory usage viewer"""
56

examples/charts/modeldata/modeldata.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (C) 2022 The Qt Company Ltd.
22
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3+
from __future__ import annotations
34

45
"""PySide6 port of the Model Data example from Qt v5.x"""
56

0 commit comments

Comments
 (0)