Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 29, 2024
1 parent 9f3f911 commit 5293bf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reorder_python_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def _pat(base: str, pats: tuple[str, ...]) -> re.Pattern[str]:
)


def _tokenize(s: str) -> Generator[tuple[Tok, str], None, None]:
def _tokenize(s: str) -> Generator[tuple[Tok, str]]:
pos = 0
while True:
for tp, reg in TOKENIZE:
Expand Down Expand Up @@ -268,7 +268,7 @@ def replace_imports(
return ret


def _module_to_base_modules(s: str) -> Generator[str, None, None]:
def _module_to_base_modules(s: str) -> Generator[str]:
"""return all module names that would be imported due to this
import-import
"""
Expand Down

0 comments on commit 5293bf5

Please sign in to comment.