Skip to content

Commit bcc3dbe

Browse files
committed
Bump pre-commit hooks.
1 parent a7b2ae5 commit bcc3dbe

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
repos:
44

55
- repo: https://github.com/asottile/pyupgrade
6-
rev: v3.16.0
6+
rev: v3.18.0
77
hooks:
88
- id: pyupgrade
99
args: ["--py310-plus"]
@@ -14,14 +14,14 @@ repos:
1414
- id: fix-future-annotations
1515

1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: v0.5.0
17+
rev: v0.6.9
1818
hooks:
1919
- id: ruff
2020
args: [--fix, --exit-non-zero-on-fix]
2121
- id: ruff-format
2222

2323
- repo: https://github.com/pre-commit/mirrors-mypy
24-
rev: v1.10.1
24+
rev: v1.11.2
2525
hooks:
2626
- id: mypy
2727
args: [--ignore-missing-imports, --strict]
@@ -31,7 +31,7 @@ repos:
3131
]
3232

3333
- repo: https://github.com/pre-commit/pre-commit-hooks
34-
rev: v4.6.0
34+
rev: v5.0.0
3535
hooks:
3636
- id: fix-encoding-pragma
3737
args: [--remove]

fsutil/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
import uuid
1414
import zipfile
1515
from datetime import datetime
16-
from typing import Any, Callable, Generator, Iterable, Literal, Union
16+
from typing import Any, Literal, Union
17+
from collections.abc import Callable, Generator, Iterable
1718
from urllib.parse import urlsplit
1819

1920
try:
@@ -1045,7 +1046,7 @@ def _read_file_lines_in_range(
10451046
line_start: int = 0,
10461047
line_end: int = -1,
10471048
encoding: str = "utf-8",
1048-
) -> Generator[str, None, None]:
1049+
) -> Generator[str]:
10491050
path = _get_path(path)
10501051
line_start_negative = line_start < 0
10511052
line_end_negative = line_end < 0

0 commit comments

Comments
 (0)