Skip to content

Commit

Permalink
fix per ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
barrust committed Dec 26, 2024
1 parent 6cd5fa3 commit 4a7de96
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spellchecker/spellchecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 4a7de96

Please sign in to comment.