From 4a7de9692996ce3a8465c44d31253d803d674667 Mon Sep 17 00:00:00 2001 From: barrust Date: Thu, 26 Dec 2024 15:58:57 -0500 Subject: [PATCH] fix per ruff --- spellchecker/spellchecker.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spellchecker/spellchecker.py b/spellchecker/spellchecker.py index b2e208c..53df1fe 100644 --- a/spellchecker/spellchecker.py +++ b/spellchecker/spellchecker.py @@ -513,7 +513,7 @@ def _update_dictionary(self) -> None: self._total_words = sum(self._dictionary.values()) self._unique_words = len(self._dictionary.keys()) self._letters = set() - for l in self._dictionary: - if len(l) > self._longest_word_length: - self._longest_word_length = len(l) - self._letters.update(l) + for key in self._dictionary: + if len(key) > self._longest_word_length: + self._longest_word_length = len(key) + self._letters.update(key)