Skip to content

Commit 1d3a0a1

Browse files
authored
Update to mypy 1.15.0 (#891)
1 parent 86756a7 commit 1d3a0a1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repos:
88
- id: trailing-whitespace
99

1010
- repo: https://github.com/pre-commit/mirrors-mypy
11-
rev: v1.13.0
11+
rev: v1.15.0
1212
hooks:
1313
- id: mypy
1414
exclude: '^(docs|tasks|tests)|setup\.py'

src/packaging/specifiers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,7 @@ def __init__(self, spec: str = "", prereleases: bool | None = None) -> None:
244244
# Store whether or not this Specifier should accept prereleases
245245
self._prereleases = prereleases
246246

247-
# https://github.com/python/mypy/pull/13475#pullrequestreview-1079784515
248-
@property # type: ignore[override]
247+
@property
249248
def prereleases(self) -> bool:
250249
# If there is an explicit prereleases set for this, then we'll just
251250
# blindly use that.

0 commit comments

Comments
 (0)