Skip to content

Commit b54599b

Browse files
committed
Bumps black to v25.9.0 and mypy to v1.18.2
1 parent f7b5108 commit b54599b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 22.3.0
3+
rev: 25.9.0
44
hooks:
55
- id: black
66
args: ["--target-version", "py36"]
@@ -13,7 +13,7 @@ repos:
1313
hooks:
1414
- id: isort
1515
- repo: https://github.com/pre-commit/mirrors-mypy
16-
rev: v0.910
16+
rev: v1.18.2
1717
hooks:
1818
- id: mypy
1919
args: ["--strict"]

src/distro/distro.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
from typing import TypedDict
5555
except ImportError:
5656
# Python 3.7
57-
TypedDict = dict
57+
TypedDict = dict # type: ignore[assignment]
5858

5959
__version__ = "1.9.0"
6060

tests/test_distro.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2281,16 +2281,16 @@ def test_kv_21_single_quoted_word_with_double_quote(self) -> None:
22812281

22822282
def test_kv_22_quoted_unicode_wordchar(self) -> None:
22832283
# "wordchar" means it is in the shlex.wordchars variable.
2284-
props = self._get_props('KEY="wordchar: \u00CA (E accent grave)"\n')
2285-
assert props.get("key", None) == "wordchar: \u00CA (E accent grave)"
2284+
props = self._get_props('KEY="wordchar: \u00ca (E accent grave)"\n')
2285+
assert props.get("key", None) == "wordchar: \u00ca (E accent grave)"
22862286

22872287
def test_kv_23_quoted_unicode_non_wordchar(self) -> None:
22882288
# "non-wordchar" means it is not in the shlex.wordchars variable.
22892289
props = self._get_props(
2290-
'KEY="non-wordchar: \u00A1 (inverted exclamation mark)"\n'
2290+
'KEY="non-wordchar: \u00a1 (inverted exclamation mark)"\n'
22912291
)
22922292
assert (
2293-
props.get("key", None) == "non-wordchar: \u00A1 (inverted exclamation mark)"
2293+
props.get("key", None) == "non-wordchar: \u00a1 (inverted exclamation mark)"
22942294
)
22952295

22962296
def test_kv_24_double_quoted_entire_single_quoted_word(self) -> None:

0 commit comments

Comments
 (0)