Skip to content

Commit c1b6fbf

Browse files
committed
Fixed some annotations compat. (<Py3.10)
1 parent 7c6c330 commit c1b6fbf

9 files changed

Lines changed: 17 additions & 3 deletions

doc/requirements.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ The :mod:`plotpy` package requires the following Python modules:
1717
- >=0.10
1818
- Qt plotting widgets for Python
1919
* - NumPy
20-
- >=1.3
20+
- >=1.17
2121
- Fundamental package for array computing in Python
2222
* - SciPy
23-
- >=0.7
23+
- >=1.3
2424
- Fundamental algorithms for scientific computing in Python
2525
* - Pillow
2626
-

plotpy/tests/gui/test_cross_section_oblique.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def __init__(self, parent=None, toolbar=True, title=None, options=None):
3535
for tool in (ObliqueCrossSectionTool, OCSPanelTool, ImageMaskTool):
3636
self.manager.add_tool(tool)
3737

38-
def populate_plot_layout(self) -> None:
38+
def populate_plot_layout(self):
3939
"""Populate the plot layout"""
4040
super().populate_plot_layout()
4141
ra_panel = ObliqueCrossSection(self)

plotpy/tests/gui/test_image_masked.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
# guitest: show
1414

15+
from __future__ import annotations
16+
1517
import os.path as osp
1618

1719
from plotpy.builder import make

plotpy/tests/gui/test_image_masked_xy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
# guitest: show
1414

15+
from __future__ import annotations
16+
1517
from plotpy import io
1618
from plotpy.builder import make
1719
from plotpy.tests.gui.test_image_masked import MaskedImageTest

plotpy/tests/gui/test_loadsaveitems_hdf5.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
# WARNING:
1111
# This script requires read/write permissions on current directory
1212

13+
from __future__ import annotations
14+
1315
from guidata.dataset.io import HDF5Reader, HDF5Writer
1416

1517
from plotpy.tests.gui.test_loadsaveitems_pickle import IOTest

plotpy/tests/gui/test_loadsaveitems_json.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
# WARNING:
2727
# This script requires read/write permissions on current directory
2828

29+
from __future__ import annotations
30+
2931
from guidata.dataset.io import JSONReader, JSONWriter
3032

3133
from plotpy.tests.gui.test_loadsaveitems_pickle import IOTest

plotpy/tests/gui/test_syncplot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
"""Testing plot with synchronized axes"""
77

8+
from __future__ import annotations
9+
810
import numpy as np
911
from guidata.qthelpers import qt_app_context
1012
from qtpy import QtCore as QC

plotpy/tests/gui/test_transform.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
# guitest: show
99

10+
from __future__ import annotations
11+
1012
import os
1113

1214
import numpy as np

plotpy/tests/unit/test_geometry.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
Unit tests for geometry module
88
"""
99

10+
from __future__ import annotations
11+
1012
import numpy as np
1113

1214
from plotpy.mathutils import geometry as geom

0 commit comments

Comments
 (0)