Open
Description
Python<=3.9 does not support |
in typing which is used at different places:
dioptas/model/PatternModel.py", line 146, in PatternModel
def background_pattern(self, pattern: Pattern | None):
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
dioptas/model/OverlayModel.py", line 42, in Overlay
self, x: np.ndarray | None = None, y: np.ndarray | None = None, name: str = ""
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
dioptas/controller/MapController.py", line 384, in MapController
self, x: float, current_unit: str | None = None
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
This can be fixed by adding from __future__ import annotations
as the first line of code of those files, or by dropping support of Python<3.10.
Metadata
Metadata
Assignees
Labels
No labels