Skip to content

Commit 3b72bd0

Browse files
committed
Bumps black to v25.9.0 and mypy to v1.18.2
1 parent 81f30bf commit 3b72bd0

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
@@ -53,7 +53,7 @@
5353
from typing import TypedDict
5454
except ImportError:
5555
# Python 3.7
56-
TypedDict = dict
56+
TypedDict = dict # type: ignore[assignment]
5757

5858
__version__ = "1.9.0"
5959

tests/test_distro.py

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

22422242
def test_kv_22_quoted_unicode_wordchar(self) -> None:
22432243
# "wordchar" means it is in the shlex.wordchars variable.
2244-
props = self._get_props('KEY="wordchar: \u00CA (E accent grave)"\n')
2245-
assert props.get("key", None) == "wordchar: \u00CA (E accent grave)"
2244+
props = self._get_props('KEY="wordchar: \u00ca (E accent grave)"\n')
2245+
assert props.get("key", None) == "wordchar: \u00ca (E accent grave)"
22462246

22472247
def test_kv_23_quoted_unicode_non_wordchar(self) -> None:
22482248
# "non-wordchar" means it is not in the shlex.wordchars variable.
22492249
props = self._get_props(
2250-
'KEY="non-wordchar: \u00A1 (inverted exclamation mark)"\n'
2250+
'KEY="non-wordchar: \u00a1 (inverted exclamation mark)"\n'
22512251
)
22522252
assert (
2253-
props.get("key", None) == "non-wordchar: \u00A1 (inverted exclamation mark)"
2253+
props.get("key", None) == "non-wordchar: \u00a1 (inverted exclamation mark)"
22542254
)
22552255

22562256
def test_kv_24_double_quoted_entire_single_quoted_word(self) -> None:

0 commit comments

Comments
 (0)