From b3a9e8003522589a40f5041b30726da743db9596 Mon Sep 17 00:00:00 2001 From: Rock Storm Date: Thu, 19 Oct 2023 17:34:47 +0200 Subject: [PATCH] Remove type hint causing regression Fixes #1386 --- printrun/gui/widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/printrun/gui/widgets.py b/printrun/gui/widgets.py index b91339fc2..2dd05779e 100644 --- a/printrun/gui/widgets.py +++ b/printrun/gui/widgets.py @@ -305,7 +305,7 @@ def replace_all(self): self.text_cntrl.SetInsertionPoint(position) self.text_cntrl.ShowPosition(position) - def bools_to_flags(self, bools: tuple | list) -> int: + def bools_to_flags(self, bools) -> int: '''Converts a tuple of bool settings into an integer that is readable for wx.FindReplaceData''' matchcase = wx.FR_MATCHCASE if bools[0] else 0