Skip to content

Commit aea338c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ec398ac commit aea338c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

codespell_lib/_codespell.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@
2626
import sys
2727
import textwrap
2828
from ctypes import wintypes
29-
from .spellchecker import (
30-
DetectedMisspelling,
31-
LineTokenizer,
32-
Spellchecker
33-
)
29+
from .spellchecker import DetectedMisspelling, LineTokenizer, Spellchecker
3430
from typing import (
3531
Any,
3632
Dict,

codespell_lib/spellchecker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,9 @@ def check_lower_cased_word(self, word: str) -> Optional[Misspelling]:
245245
"""
246246
return self._misspellings.get(word)
247247

248-
def add_from_file(self, filename: str, *, ignore_words: Container[str] = frozenset()) -> None:
248+
def add_from_file(
249+
self, filename: str, *, ignore_words: Container[str] = frozenset()
250+
) -> None:
249251
"""Parse a codespell dictionary
250252
251253
:param filename: The codespell dictionary file to parse

0 commit comments

Comments
 (0)