Skip to content

Commit efa405e

Browse files
committed
Merge remote-tracking branch 'upstream/main' into pyyaml-add-missing-types-to-node-typevar
2 parents 2a35889 + 13ffe24 commit efa405e

349 files changed

Lines changed: 4189 additions & 4641 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/CODEOWNERS‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# See docs/maintainer-guide.md#subscribing-to-changes-with-codeowners
2+
# Last matching pattern wins: list all subscribers to a path on one line.
3+
4+
/stdlib/distutils/ @Avasam
5+
6+
/stubs/keyboard/ @Avasam
7+
/stubs/PyAutoGUI/ @Avasam
8+
/stubs/pyinstaller/ @Avasam
9+
/stubs/python-xlib/ @Avasam
10+
/stubs/pywin32/ @Avasam
11+
/stubs/setuptools/ @Avasam
12+
13+
/stdlib/tkinter/ @Akuli
14+
/stubs/ttkthemes/ @Akuli

‎.github/workflows/daily.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,5 +161,4 @@ jobs:
161161
repo: "typeshed",
162162
title: `Daily tests failed on ${new Date().toDateString()}`,
163163
body: "Run listed here: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
164-
labels: ["help wanted"],
165164
})

‎.vscode/extensions.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"bierner.github-markdown-preview",
66
"charliermarsh.ruff",
77
"editorconfig.editorconfig",
8+
"jasonnutter.vscode-codeowners",
89
"ms-python.black-formatter",
910
"ms-python.flake8",
1011
"ms-python.mypy-type-checker",

‎docs/README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
- [README.md](../README.md) – Project Overview
66
- [CONTRIBUTING.md](../CONTRIBUTING.md) – Contribution Guidelines
7-
- [MAINTAINERS.md](../MAINTAINERS.md) – Active and Former Maintainers
7+
- [docs/maintainers.md](./maintainers.md) – Active and Former Maintainers
8+
- [docs/maintainer-guide.md](./maintainer-guide.md) – Guidelines for Maintainers
89
- [tests/README.md](../tests/README.md) – Test Suite Overview
910
- [tests/REGRESSION.md](../tests/REGRESSION.md) – Regression Tests
1011
- [stdlib/_typeshed/README.md](../stdlib/_typeshed/README.md) – Utility Types in `_typeshed`

MAINTAINERS.md renamed to docs/maintainer-guide.md

Lines changed: 24 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,6 @@
1-
At present the active maintainers are (alphabetically):
2-
3-
* Rebecca Chen (@rchen152)
4-
* Jukka Lehtosalo (@JukkaL)
5-
* Ivan Levkivskyi (@ilevkivskyi)
6-
* Sebastian Rittau (@srittau)
7-
* Guido van Rossum (@gvanrossum)
8-
* Brian Schubert (@brianschubert)
9-
* Shantanu (@hauntsaninja)
10-
* Nikita Sobolev (@sobolevn)
11-
* Samuel Therrien (@Avasam)
12-
* Aku Viljanen (@Akuli)
13-
* Alex Waygood (@AlexWaygood)
14-
* Jelle Zijlstra (@JelleZijlstra)
15-
16-
Former maintainers include:
17-
18-
* David Fisher (@ddfisher)
19-
* Matthias Kramm (@matthiaskramm)
20-
* Łukasz Langa (@ambv)
21-
* Greg Price (@gnprice)
22-
* Rune Tynan (@CraftSpider)
1+
# Guidelines for typeshed Maintainers
2+
3+
## Maintainer Removal
234

245
For security reasons, maintainers who haven't been active for twelve months
256
(no PR reviews or merges, no opened PRs, no significant participation in
@@ -29,14 +10,14 @@ They will also be moved to the "former maintainers" section here.
2910
Former maintainers who want their access rights restored should open
3011
an issue or mail one of the active maintainers.
3112

32-
## Maintainer guidelines
13+
## Preparing and Submitting Changes
3314

3415
The process for preparing and submitting changes as outlined
35-
in the [CONTRIBUTING document](./CONTRIBUTING.md) also applies to
16+
in the [CONTRIBUTING document](../CONTRIBUTING.md) also applies to
3617
maintainers. This ensures high quality contributions and keeps
3718
everybody on the same page. Do not make direct pushes to the repository.
3819

39-
### Reviewing and merging pull requests
20+
## Reviewing and Merging Pull Requests
4021

4122
When reviewing pull requests, follow these guidelines:
4223

@@ -59,9 +40,17 @@ When merging pull requests, follow these guidelines:
5940
and assume that the reader has no access to the diff.
6041
* Delete branches for merged PRs (by maintainers pushing to the main repo).
6142

62-
### Marking PRs as "deferred"
43+
## Subscribing to Changes with CODEOWNERS
44+
45+
The [`.github/CODEOWNERS`](../.github/CODEOWNERS) file lets maintainers subscribe to changes to specific stubs. GitHub automatically requests a review from everyone listed for the paths a pull request touches.
46+
47+
Despite its name, this file is not about who "owns" the code. Being listed is only a way to get notified. It grants no extra permissions, and a review from a listed person is not required to merge a PR.
6348

64-
*See also the [guidelines in the CONTRIBUTING file](./CONTRIBUTING.md#marking-prs-as-deferred).*
49+
Maintainers can freely add and remove themselves. GitHub [requires code owners to have write access to the repository](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-syntax).
50+
51+
## Marking PRs as "deferred"
52+
53+
*See also the [guidelines in the CONTRIBUTING file](../CONTRIBUTING.md#marking-prs-as-deferred).*
6554

6655
PRs should only be marked as "deferred" if there is a clear path towards getting
6756
the blocking issue resolved within a reasonable time frame. If a PR depends on
@@ -71,25 +60,27 @@ the PEP stage, it should instead be closed.
7160
Maintainers who add the "deferred" label should state clearly what exactly the
7261
blocker is, usually with a link to an open issue in another project.
7362

74-
### Closing stale PRs
63+
## Issue/PR Message Templates
64+
65+
### Closing Stale PRs
7566

76-
*See also the [guidelines in the CONTRIBUTING file](./CONTRIBUTING.md#closing-stale-prs).*
67+
*See also the [guidelines in the CONTRIBUTING file](../CONTRIBUTING.md#closing-stale-prs).*
7768

7869
We want to maintain a welcoming atmosphere for contributors, so use a friendly
7970
message when closing the PR. Example message:
8071

8172
Thanks for contributing! I'm closing this PR for now, because it still <fails some tests OR has unresolved review feedback OR has a merge conflict> after three months of inactivity. If you are still interested, please feel free to open a new PR (or ping us to reopen this one).
8273

83-
### Closing PRs for future standard library changes
74+
### Closing PRs for Future Standard Library Changes
8475

85-
*See also the [guidelines in the CONTRIBUTING file](./CONTRIBUTING.md#standard-library-stubs).*
76+
*See also the [guidelines in the CONTRIBUTING file](../CONTRIBUTING.md#standard-library-stubs).*
8677

8778
When rejecting a PR for a change for a future Python version, use a message
8879
like:
8980

9081
Thanks for contributing! Unfortunately, [as outlined in our CONTRIBUTING document](https://github.com/python/typeshed/blob/main/CONTRIBUTING.md#standard-library-stubs) we only accept pull requests to the standard library for future Python versions after the first beta version has been released. This is in part to prevent churn in the stubs, and in part because the testing infrastructure for the future version is not yet in place. Please feel free to open a new PR when the first beta version has been released. Alternatively, if this PR is still relevant, you can leave a comment here to reopen it.
9182

92-
### Closing requests for third-party stubs
83+
### Closing Requests for Third-Party Stubs
9384

9485
We don't keep requests for third-party library stubs open. Close those
9586
requests as "not planned" with an explanation like this:
@@ -98,7 +89,7 @@ requests as "not planned" with an explanation like this:
9889

9990
That said, we don't keep requests for third-party library stubs open, unless there are issues that need to be addressed before a PR can be opened. Therefore, I'm closing this issue.
10091

101-
### Asking to remove tests
92+
### Asking to Remove Tests
10293

10394
Please remove the tests. In typeshed, we only add regression tests for functions and classes which are known to have caused complex problems in the past, or where stubs are difficult to get right. 100% test coverage for typeshed is neither necessary nor desirable, as it would lead to code duplication.
10495

‎docs/maintainers.md‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
At present the active maintainers are (alphabetically):
2+
3+
* Rebecca Chen (@rchen152)
4+
* Jukka Lehtosalo (@JukkaL)
5+
* Ivan Levkivskyi (@ilevkivskyi)
6+
* Sebastian Rittau (@srittau)
7+
* Guido van Rossum (@gvanrossum)
8+
* Brian Schubert (@brianschubert)
9+
* Shantanu (@hauntsaninja)
10+
* Nikita Sobolev (@sobolevn)
11+
* Samuel Therrien (@Avasam)
12+
* Aku Viljanen (@Akuli)
13+
* Alex Waygood (@AlexWaygood)
14+
* Jelle Zijlstra (@JelleZijlstra)
15+
16+
Former maintainers include:
17+
18+
* David Fisher (@ddfisher)
19+
* Matthias Kramm (@matthiaskramm)
20+
* Łukasz Langa (@ambv)
21+
* Greg Price (@gnprice)
22+
* Rune Tynan (@CraftSpider)

‎pyrightconfig.stricter.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"stdlib/tkinter/tix.pyi",
2727
"stdlib/tkinter/ttk.pyi",
2828
"stubs/antlr4-python3-runtime",
29-
"stubs/auth0-python",
3029
"stubs/Authlib",
3130
"stubs/aws-xray-sdk",
3231
"stubs/behave",

‎requirements-tests.txt‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Type checkers that we test our stubs against. These should always
22
# be pinned to a specific version to make failure reproducible.
3-
mypy==2.4.0
4-
pyrefly==1.3.2
3+
mypy==2.4.1
4+
pyrefly==1.4.0
55
pyright==1.1.414
6-
ty==0.0.86
6+
ty==0.0.95
77

88
# Libraries used by our various scripts.
99
aiohttp==3.14.4
@@ -20,7 +20,7 @@ termcolor>=2.3
2020
tomli==2.4.1; python_version < "3.11"
2121
tomlkit==0.15.1
2222
typing_extensions>=4.16.0rc2
23-
uv==0.12.18
23+
uv==0.13.5
2424

2525
# Utilities for typeshed infrastructure scripts.
2626
ts_utils @ file:lib

‎stdlib/@tests/stubtest_allowlists/common.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,10 @@ importlib.metadata._meta.SimplePath.joinpath # Runtime definition of protocol i
291291
inspect.Parameter.__init__
292292
inspect.Signature.__init__
293293

294+
# Abstract methods that don't exist at runtime
295+
_io._IOBase.read
296+
_io._IOBase.write
297+
294298
logging.LogRecord.__setattr__ # doesn't exist, but makes things easy if we pretend it does
295299

296300
# Iterable classes that don't define __iter__ at runtime (usually iterable via __getitem__)

‎stdlib/@tests/stubtest_allowlists/darwin-py311.txt‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ html.parser.HTMLParser.__init__ # parameter `scripting`
4545
pyexpat.XMLParserType.SetAllocTrackerActivationThreshold
4646
pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification
4747

48+
# Incompatible changes introduced in Python 3.11.18
49+
# (Remove once 3.11.18 becomes available for GitHub Actions)
50+
email._header_value_parser.Terminal.contains_token_type
51+
email._header_value_parser.TokenList.contains_token_type
52+
4853

4954
# ============
5055
# 3.11 to 3.12

0 commit comments

Comments
 (0)