Skip to content

Commit

Permalink
style: Import name directly
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed May 5, 2024
1 parent 2ae097d commit dc86ab5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mkdocs_spellcheck/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from __future__ import annotations

import fnmatch
from fnmatch import fnmatch
from pathlib import Path
from typing import TYPE_CHECKING, Any

Expand Down Expand Up @@ -130,7 +130,7 @@ def on_page_content(self, html: str, page: Page, **kwargs: Any) -> None: # noqa
page: The page instance.
**kwargs: Additional arguments passed by MkDocs.
"""
if self.run and not any(fnmatch.fnmatch(page.file.src_path, pattern) for pattern in self.skip_files):
if self.run and not any(fnmatch(page.file.src_path, pattern) for pattern in self.skip_files):
words = get_words(
html,
known_words=self.known_words,
Expand Down

0 comments on commit dc86ab5

Please sign in to comment.