From eb2c2771c4e8a8eab13ef76a6139bc40b360f6e3 Mon Sep 17 00:00:00 2001 From: Pavel Kirilin Date: Fri, 3 Jul 2026 10:24:21 +0200 Subject: [PATCH] Fixed lints. Signed-off-by: Pavel Kirilin --- zangramru/utils/trie.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zangramru/utils/trie.py b/zangramru/utils/trie.py index 9ee3c66..e5c0c03 100644 --- a/zangramru/utils/trie.py +++ b/zangramru/utils/trie.py @@ -17,7 +17,7 @@ class TrieNode: def add(self, word: str, definitions: list[str] | None = None) -> None: """Add a word to the trie.""" - word = word.lower().strip().replace("ё", "е") + word = word.lower().strip().replace("ё", "е") # noqa: RUF001 node = self for i in range(len(word)): if word[i] not in node.children: @@ -35,7 +35,7 @@ class TrieNode: the word is in the trie, or is a prefix of a longer word. """ - word = word.lower().strip().replace("ё", "е") + word = word.lower().strip().replace("ё", "е") # noqa: RUF001 node = self for i in range(len(word)): if word[i] not in node.children: