diff -r 84684a40187d -r f94b530722af src/eric7/EricWidgets/EricSpellCheckedTextEdit.py --- a/src/eric7/EricWidgets/EricSpellCheckedTextEdit.py Tue Feb 21 10:56:54 2023 +0100 +++ b/src/eric7/EricWidgets/EricSpellCheckedTextEdit.py Wed Feb 22 07:43:56 2023 +0100 @@ -270,7 +270,7 @@ misspelledWords = getattr(cursor.block().userData(), "misspelled", []) # If the cursor is within a misspelling, select the word - for (start, end) in misspelledWords: + for start, end in misspelledWords: if start <= cursor.positionInBlock() <= end: blockPosition = cursor.block().position() @@ -550,7 +550,7 @@ # Build a list of all misspelled words and highlight them misspellings = [] with contextlib.suppress(enchant.errors.Error): - for (word, pos) in self.__tokenizer(text): + for word, pos in self.__tokenizer(text): if not self.__spellDict.check(word): self.setFormat(pos, len(word), EnchantHighlighter.ErrorFormat) misspellings.append((pos, pos + len(word)))