diff options
author | Friedemann Kleint <[email protected]> | 2024-09-18 07:36:20 +0200 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2024-09-18 08:28:04 +0200 |
commit | e4199ec3881d8e556385af98084856be857e0dbe (patch) | |
tree | 77b264f5a21cff9f131a6b27e3b5142745faf91f /examples/external/matplotlib | |
parent | f48433db9a5be32c0b401c1d5203853abbff6c32 (diff) |
type hints: Fix some typing bugs for mypy (forgiveness)
The new enums still support old syntax by the forgiveness mode.
Nevertheless, when using mypy to check files, strict correctness
is enforced.
We correct a large number of forgiveness-induced errors,
but there is still a whole lot of other complaints to fix.
Task-number: PYSIDE-2846
Change-Id: If566187d268ef75bc09b8d86f73d2c7d19f284f9
Reviewed-by: Friedemann Kleint <[email protected]>
Diffstat (limited to 'examples/external/matplotlib')
-rw-r--r-- | examples/external/matplotlib/widget3d/widget3d.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/external/matplotlib/widget3d/widget3d.py b/examples/external/matplotlib/widget3d/widget3d.py index 01ead09c8..591259527 100644 --- a/examples/external/matplotlib/widget3d/widget3d.py +++ b/examples/external/matplotlib/widget3d/widget3d.py @@ -48,8 +48,8 @@ class ApplicationWindow(QMainWindow): # Sliders (Left) min = 0 max = 360 - self.slider_azim = QSlider(minimum=min, maximum=max, orientation=Qt.Horizontal) - self.slider_elev = QSlider(minimum=min, maximum=max, orientation=Qt.Horizontal) + self.slider_azim = QSlider(minimum=min, maximum=max, orientation=Qt.Orientation.Horizontal) + self.slider_elev = QSlider(minimum=min, maximum=max, orientation=Qt.Orientation.Horizontal) self.slider_azim_layout = QHBoxLayout() self.slider_azim_layout.addWidget(QLabel(f"{min}")) |