- replaced some type hints with using the Union
This commit is contained in:
@@ -10,6 +10,7 @@ CHANGELOG for FlatCAM Evo beta
|
||||
05.05.2023
|
||||
|
||||
- fixed an erroneous opening for a Gerber file generated by KiCAD 6.0.11, due of a rectangular flash being eliminated by the global unary_union operation
|
||||
- replaced some type hints with using the Union
|
||||
|
||||
15.04.2023
|
||||
|
||||
|
||||
@@ -51,6 +51,8 @@ import qdarktheme
|
||||
import qdarktheme.themes.dark.stylesheet as qdarksheet
|
||||
import qdarktheme.themes.light.stylesheet as qlightsheet
|
||||
|
||||
from typing import Union
|
||||
|
||||
# ####################################################################################################################
|
||||
# ################################### Imports part of FlatCAM #############################################
|
||||
# ####################################################################################################################
|
||||
@@ -6826,7 +6828,7 @@ class App(QtCore.QObject):
|
||||
return [self._mouse_click_pos[0], self._mouse_click_pos[1]]
|
||||
|
||||
@mouse_click_pos.setter
|
||||
def mouse_click_pos(self, m_pos: list[float] | tuple[float]):
|
||||
def mouse_click_pos(self, m_pos: Union[list[float], tuple[float]]):
|
||||
self._mouse_click_pos = m_pos
|
||||
|
||||
@property
|
||||
@@ -6834,7 +6836,7 @@ class App(QtCore.QObject):
|
||||
return [self._mouse_pos[0], self._mouse_pos[1]]
|
||||
|
||||
@mouse_pos.setter
|
||||
def mouse_pos(self, m_pos: list[float] | tuple[float]):
|
||||
def mouse_pos(self, m_pos: Union[list[float], tuple[float]]):
|
||||
self._mouse_pos = m_pos
|
||||
|
||||
def selection_area_handler(self, start_pos, end_pos, sel_type):
|
||||
|
||||
Reference in New Issue
Block a user