Skip to content

Commit

Permalink
Fixed super stupid bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xfenix committed Jun 15, 2022
1 parent ecf55f0 commit e601cfb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions whole_app/spell.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,16 @@ class SpellCheckService:

_language: models.AvailableLanguagesType
_spellcheck_engine: enchant.Dict
_user_corrections: list[models.OneCorrection] = []
_user_corrections: list[models.OneCorrection]

def __init__(self, desired_language: models.AvailableLanguagesType) -> None:
"""Initialize spellchecker."""
self._language = desired_language

def prepare(self) -> "SpellCheckService":
"""Initialize machinery."""
self._spellcheck_engine: enchant.Dict = enchant.Dict(self._language)
self._user_corrections = []
self._spellcheck_engine = enchant.Dict(self._language)
return self

def _make_one_correction_and_append_to_output(self, index: int, one_word_buf: list[str]) -> None:
Expand Down

0 comments on commit e601cfb

Please sign in to comment.