Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update mypy
  • Loading branch information
hauntsaninja authored and pradyunsg committed Apr 19, 2025
commit 3ea796c39a157a713ebed82ca5ab0f38022fc9a1
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
rev: v1.15.0
hooks:
- id: mypy
exclude: '^(docs|tasks|tests)|setup\.py'
Expand Down
3 changes: 1 addition & 2 deletions src/packaging/specifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,7 @@ def __init__(self, spec: str = "", prereleases: bool | None = None) -> None:
# Store whether or not this Specifier should accept prereleases
self._prereleases = prereleases

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