Skip to content

Commit 9ab9840

Browse files
authored
Merge branch 'master' into release-1.15-changelog
2 parents ae6e77c + 1f509ec commit 9ab9840

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ repos:
3939
rev: v1.0.1
4040
hooks:
4141
- id: zizmor
42+
- repo: local
43+
hooks:
44+
- id: bad-pr-link
45+
name: Bad PR link
46+
description: Detect PR links text that don't match their URL
47+
language: pygrep
48+
entry: '\[(\d+)\]\(https://github.com/python/mypy/pull/(?!\1/?\))\d+/?\)'
49+
files: CHANGELOG.md
4250
# Should be the last one:
4351
- repo: meta
4452
hooks:

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ By default, mypy treats an annotation of ``bytes`` as permitting ``bytearray`` a
3838
[PEP 688](https://peps.python.org/pep-0688) specified the removal of this special case.
3939
Use this flag to disable this behavior. `--strict-bytes` will be enabled by default in **mypy 2.0**.
4040

41-
Contributed by Ali Hamdan (PR [18137](https://github.com/python/mypy/pull/18263/)) and
41+
Contributed by Ali Hamdan (PR [18263](https://github.com/python/mypy/pull/18263)) and
4242
Shantanu Jain (PR [13952](https://github.com/python/mypy/pull/13952)).
4343

4444
### Improvements to reachability analysis and partial type handling in loops
@@ -48,7 +48,7 @@ issues it previously did not detect. In some cases, this change may require use
4848
explicit annotation of a variable.
4949

5050
Contributed by Christoph Tyralla (PR [18180](https://github.com/python/mypy/pull/18180),
51-
[PR](https://github.com/python/mypy/pull/18433)).
51+
PR [18433](https://github.com/python/mypy/pull/18433)).
5252

5353
(Speaking of partial types, another reminder that mypy plans on enabling `--local-partial-types`
5454
by default in **mypy 2.0**).
@@ -61,7 +61,7 @@ configuration files. See the
6161
for more details.
6262

6363
Contributed by Mikhail Shiryaev and Shantanu Jain
64-
(PR [16965](https://github.com/python/mypy/pull/16965), PR [18482](https://github.com/python/mypy/pull/18482)
64+
(PR [16965](https://github.com/python/mypy/pull/16965), PR [18482](https://github.com/python/mypy/pull/18482))
6565

6666
### Better line numbers for decorators and slice expressions
6767

0 commit comments

Comments
 (0)