Skip to content

Commit

Permalink
Merge pull request #390 from asottile/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
asottile authored Jul 30, 2024
2 parents 3114a1f + 5293bf5 commit 16cafa6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ repos:
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
rev: v3.17.0
hooks:
- id: pyupgrade
args: [--py38-plus]
Expand Down
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 16cafa6

Please sign in to comment.