Skip to content

Commit 26c884f

Browse files
committed
Merge branch 'main' of https://github.com/python/typeshed into networkx-merge-from-python-type-stubs
2 parents 7c89025 + aa52024 commit 26c884f

File tree

90 files changed

+858
-826
lines changed

Some content is hidden

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

90 files changed

+858
-826
lines changed

.github/workflows/daily.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ jobs:
3939
fail-fast: false
4040

4141
steps:
42-
- uses: actions/checkout@v4
42+
- uses: actions/checkout@v5
4343
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
44-
uses: actions/setup-python@v5
44+
uses: actions/setup-python@v6
4545
with:
4646
python-version: ${{ matrix.python-version }}
4747
cache: pip
@@ -66,8 +66,8 @@ jobs:
6666
shard-index: [0, 1, 2, 3]
6767
fail-fast: false
6868
steps:
69-
- uses: actions/checkout@v4
70-
- uses: actions/setup-python@v5
69+
- uses: actions/checkout@v5
70+
- uses: actions/setup-python@v6
7171
with:
7272
python-version: "3.13"
7373
cache: pip
@@ -114,15 +114,15 @@ jobs:
114114
runs-on: ubuntu-latest
115115
steps:
116116
- name: Checkout typeshed
117-
uses: actions/checkout@v4
117+
uses: actions/checkout@v5
118118
with:
119119
path: typeshed
120120
- name: Checkout stub_uploader
121-
uses: actions/checkout@v4
121+
uses: actions/checkout@v5
122122
with:
123123
repository: typeshed-internal/stub_uploader
124124
path: stub_uploader
125-
- uses: actions/setup-python@v5
125+
- uses: actions/setup-python@v6
126126
with:
127127
# Keep in sync with stub_uploader's check_scripts.yml workflow.
128128
python-version: "3.13"
@@ -144,7 +144,7 @@ jobs:
144144
permissions:
145145
issues: write
146146
steps:
147-
- uses: actions/github-script@v7
147+
- uses: actions/github-script@v8
148148
with:
149149
github-token: ${{ secrets.GITHUB_TOKEN }}
150150
script: |

.github/workflows/meta_tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ jobs:
3535
platform: ["linux", "win32"]
3636
fail-fast: false
3737
steps:
38-
- uses: actions/checkout@v4
39-
- uses: actions/setup-python@v5
38+
- uses: actions/checkout@v5
39+
- uses: actions/setup-python@v6
4040
with:
4141
python-version: "3.13"
4242
- uses: astral-sh/setup-uv@v6
@@ -52,8 +52,8 @@ jobs:
5252
python-platform: ["Linux", "Windows"]
5353
fail-fast: false
5454
steps:
55-
- uses: actions/checkout@v4
56-
- uses: actions/setup-python@v5
55+
- uses: actions/checkout@v5
56+
- uses: actions/setup-python@v6
5757
with:
5858
python-version: "3.13"
5959
- uses: astral-sh/setup-uv@v6
@@ -71,8 +71,8 @@ jobs:
7171
name: Stubsabot dry run
7272
runs-on: ubuntu-latest
7373
steps:
74-
- uses: actions/checkout@v4
75-
- uses: actions/setup-python@v5
74+
- uses: actions/checkout@v5
75+
- uses: actions/setup-python@v6
7676
with:
7777
python-version: "3.13"
7878
- uses: astral-sh/setup-uv@v6

.github/workflows/mypy_primer.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ jobs:
2525
shard-index: [0, 1, 2, 3]
2626
fail-fast: false
2727
steps:
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@v5
2929
with:
3030
path: typeshed_to_test
3131
fetch-depth: 0
32-
- uses: actions/setup-python@v5
32+
- uses: actions/setup-python@v6
3333
with:
3434
python-version: "3.13"
3535
- name: Install dependencies

.github/workflows/mypy_primer_comment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1919
steps:
2020
- name: Download diffs
21-
uses: actions/github-script@v7
21+
uses: actions/github-script@v8
2222
with:
2323
script: |
2424
const fs = require('fs');
@@ -44,7 +44,7 @@ jobs:
4444
4545
- name: Post comment
4646
id: post-comment
47-
uses: actions/github-script@v7
47+
uses: actions/github-script@v8
4848
with:
4949
github-token: ${{ secrets.GITHUB_TOKEN }}
5050
script: |

.github/workflows/stubsabot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
if: github.repository == 'python/typeshed'
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v5
2323
with:
2424
# use an ssh key so that checks automatically run on stubsabot PRs
2525
ssh-key: ${{ secrets.STUBSABOT_SSH_PRIVATE_KEY }}
2626
fetch-depth: 0
27-
- uses: actions/setup-python@v5
27+
- uses: actions/setup-python@v6
2828
with:
2929
python-version: "3.13"
3030
- uses: astral-sh/setup-uv@v6
@@ -46,7 +46,7 @@ jobs:
4646
needs: [stubsabot]
4747
if: ${{ github.repository == 'python/typeshed' && always() && (needs.stubsabot.result == 'failure') }}
4848
steps:
49-
- uses: actions/github-script@v7
49+
- uses: actions/github-script@v8
5050
with:
5151
github-token: ${{ secrets.GITHUB_TOKEN }}
5252
script: |

.github/workflows/stubtest_stdlib.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
fail-fast: false
3636

3737
steps:
38-
- uses: actions/checkout@v4
38+
- uses: actions/checkout@v5
3939
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
40-
uses: actions/setup-python@v5
40+
uses: actions/setup-python@v6
4141
with:
4242
python-version: ${{ matrix.python-version }}
4343
cache: pip

.github/workflows/stubtest_third_party.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ jobs:
3636
fail-fast: false
3737

3838
steps:
39-
- uses: actions/checkout@v4
39+
- uses: actions/checkout@v5
4040
with:
4141
fetch-depth: 0
42-
- uses: actions/setup-python@v5
42+
- uses: actions/setup-python@v6
4343
with:
4444
python-version: "3.13"
4545
cache: pip

.github/workflows/tests.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
name: Check typeshed structure
2727
runs-on: ubuntu-latest
2828
steps:
29-
- uses: actions/checkout@v4
30-
- uses: actions/setup-python@v5
29+
- uses: actions/checkout@v5
30+
- uses: actions/setup-python@v6
3131
with:
3232
python-version: "3.13"
3333
- uses: astral-sh/setup-uv@v6
@@ -45,8 +45,8 @@ jobs:
4545
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
4646
fail-fast: false
4747
steps:
48-
- uses: actions/checkout@v4
49-
- uses: actions/setup-python@v5
48+
- uses: actions/checkout@v5
49+
- uses: actions/setup-python@v6
5050
with:
5151
python-version: ${{ matrix.python-version }}
5252
allow-prereleases: true
@@ -72,8 +72,8 @@ jobs:
7272
name: "mypy: Run test cases"
7373
runs-on: ubuntu-latest
7474
steps:
75-
- uses: actions/checkout@v4
76-
- uses: actions/setup-python@v5
75+
- uses: actions/checkout@v5
76+
- uses: actions/setup-python@v6
7777
with:
7878
# Use py311 for now, as py312 seems to be around 30s slower in CI
7979
# TODO: figure out why that is (#11590)
@@ -93,8 +93,8 @@ jobs:
9393
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
9494
fail-fast: false
9595
steps:
96-
- uses: actions/checkout@v4
97-
- uses: actions/setup-python@v5
96+
- uses: actions/checkout@v5
97+
- uses: actions/setup-python@v6
9898
with:
9999
python-version: "3.13"
100100
- uses: astral-sh/setup-uv@v6
@@ -152,15 +152,15 @@ jobs:
152152
runs-on: ubuntu-latest
153153
steps:
154154
- name: Checkout typeshed
155-
uses: actions/checkout@v4
155+
uses: actions/checkout@v5
156156
with:
157157
path: typeshed
158158
- name: Checkout stub_uploader
159-
uses: actions/checkout@v4
159+
uses: actions/checkout@v5
160160
with:
161161
repository: typeshed-internal/stub_uploader
162162
path: stub_uploader
163-
- uses: actions/setup-python@v5
163+
- uses: actions/setup-python@v6
164164
with:
165165
# Keep in sync with stub_uploader's check_scripts.yml workflow.
166166
python-version: "3.13"

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v5.0.0
3+
rev: v6.0.0
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
@@ -11,7 +11,7 @@ repos:
1111
args: [--fix=lf]
1212
- id: check-case-conflict
1313
- repo: https://github.com/astral-sh/ruff-pre-commit
14-
rev: v0.12.2 # must match requirements-tests.txt
14+
rev: v0.13.2 # must match requirements-tests.txt
1515
hooks:
1616
- id: ruff
1717
name: Run ruff on stubs, tests and scripts
@@ -27,7 +27,7 @@ repos:
2727
- "--unsafe-fixes"
2828
files: '.*test_cases/.+\.py$'
2929
- repo: https://github.com/psf/black-pre-commit-mirror
30-
rev: 25.1.0
30+
rev: 25.9.0
3131
hooks:
3232
- id: black
3333
- repo: https://github.com/pycqa/flake8

requirements-tests.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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==1.18.1
4-
pyright==1.1.405
3+
mypy==1.18.2
4+
pyright==1.1.406
55

66
# Libraries used by our various scripts.
77
aiohttp==3.12.15
@@ -13,13 +13,13 @@ packaging==25.0
1313
pathspec>=0.11.1
1414
pre-commit
1515
# Required by create_baseline_stubs.py. Must match .pre-commit-config.yaml.
16-
ruff==0.12.2
16+
ruff==0.13.2
1717
stubdefaulter==0.1.0
1818
termcolor>=2.3
1919
tomli==2.2.1; python_version < "3.11"
2020
tomlkit==0.13.3
2121
typing_extensions>=4.15.0rc1
22-
uv==0.8.6
22+
uv==0.8.22
2323

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

0 commit comments

Comments
 (0)