Skip to content

Commit 8a6bc86

Browse files
authored
chore: faster mypy, fix merge error (#1156)
1 parent 8c04271 commit 8a6bc86

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎pyproject.toml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ typing = [
117117
{ include-group = "extra" },
118118
]
119119
mypy = [
120-
"mypy ~= 2.1.0",
120+
"mypy ~= 2.3.0",
121121
{ include-group = "typing" },
122122
]
123123
release = [
@@ -196,6 +196,7 @@ filterwarnings = [
196196
files = ["src", "tests", "tasks", "docs"]
197197
exclude = ["tests/packages"]
198198
python_version = "3.10"
199+
native_parser = true
199200
strict = true
200201
disallow_any_explicit = true
201202
disallow_any_decorated = true

‎tasks/release.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ def resolve_version(version_str: str, repo: Repo) -> Version:
4747
parts = [parts[0], parts[1] + 1, 0]
4848
case 'patch':
4949
parts[2] += 1
50+
case bt:
51+
msg = f'Invalid bump type {bt!r}'
52+
raise AssertionError(msg)
5053
return Version('.'.join(str(p) for p in parts))
5154

5255

0 commit comments

Comments
 (0)