From aea338c33bf9b9fba98e0adca4ca4c748fd7390b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 25 May 2024 08:09:14 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- codespell_lib/_codespell.py | 6 +----- codespell_lib/spellchecker.py | 4 +++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/codespell_lib/_codespell.py b/codespell_lib/_codespell.py index e4ac04e1efd..b71997c4808 100644 --- a/codespell_lib/_codespell.py +++ b/codespell_lib/_codespell.py @@ -26,11 +26,7 @@ import sys import textwrap from ctypes import wintypes -from .spellchecker import ( - DetectedMisspelling, - LineTokenizer, - Spellchecker -) +from .spellchecker import DetectedMisspelling, LineTokenizer, Spellchecker from typing import ( Any, Dict, diff --git a/codespell_lib/spellchecker.py b/codespell_lib/spellchecker.py index 761613d5544..f642bd51ebd 100644 --- a/codespell_lib/spellchecker.py +++ b/codespell_lib/spellchecker.py @@ -245,7 +245,9 @@ def check_lower_cased_word(self, word: str) -> Optional[Misspelling]: """ return self._misspellings.get(word) - def add_from_file(self, filename: str, *, ignore_words: Container[str] = frozenset()) -> None: + def add_from_file( + self, filename: str, *, ignore_words: Container[str] = frozenset() + ) -> None: """Parse a codespell dictionary :param filename: The codespell dictionary file to parse