Skip to content

Commit 8e6ce74

Browse files
authored
Merge branch 'main' into contrib-versions
2 parents 7bb48d2 + 3732198 commit 8e6ce74

6 files changed

Lines changed: 49 additions & 48 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ jobs:
2626
runs-on: ubuntu-latest
2727

2828
steps:
29-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
29+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
3030
with:
3131
persist-credentials: false
3232

3333
- name: Install the latest version of uv
34-
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
34+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
3535
with:
3636
python-version: "3.14"
3737

@@ -77,12 +77,12 @@ jobs:
7777
id-token: write # for codecov upload
7878

7979
steps:
80-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
80+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
8181
with:
8282
persist-credentials: false
8383

8484
- name: Set up Python
85-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
85+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
8686
with:
8787
python-version: ${{ matrix.python-version }}
8888
allow-prereleases: true
@@ -143,7 +143,7 @@ jobs:
143143
issues: write
144144

145145
steps:
146-
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
146+
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
147147
with:
148148
github-token: ${{ secrets.GITHUB_TOKEN }}
149149
script: |

.github/workflows/publish.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ jobs:
2323
runs-on: ubuntu-latest
2424

2525
steps:
26-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
26+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2727
with:
2828
persist-credentials: false
2929
- name: Set up Python
30-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
30+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
3131
with:
3232
python-version: "3.x"
3333
- name: Check package metadata
@@ -43,7 +43,7 @@ jobs:
4343
- name: Build a binary wheel and a source tarball
4444
run: python -m build
4545
- name: Store the distribution packages
46-
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
46+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
4747
with:
4848
name: python-package-distributions
4949
path: dist/
@@ -55,15 +55,15 @@ jobs:
5555
runs-on: ubuntu-latest
5656

5757
steps:
58-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
58+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
5959
with:
6060
persist-credentials: false
6161
- name: Set up Python
62-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
62+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
6363
with:
6464
python-version: "3.x"
6565
- name: Download all the dists
66-
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
66+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
6767
with:
6868
name: python-package-distributions
6969
path: dist/
@@ -84,15 +84,15 @@ jobs:
8484
runs-on: ubuntu-latest
8585

8686
steps:
87-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
87+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
8888
with:
8989
persist-credentials: false
9090
- name: Set up Python
91-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
91+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
9292
with:
9393
python-version: "3.x"
9494
- name: Download all the dists
95-
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
95+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
9696
with:
9797
name: python-package-distributions
9898
path: dist/
@@ -112,15 +112,15 @@ jobs:
112112
runs-on: ubuntu-latest
113113

114114
steps:
115-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
115+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
116116
with:
117117
persist-credentials: false
118118
- name: Set up Python
119-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
119+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
120120
with:
121121
python-version: "3.x"
122122
- name: Download all the dists
123-
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
123+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
124124
with:
125125
name: python-package-distributions
126126
path: dist/
@@ -152,7 +152,7 @@ jobs:
152152

153153
steps:
154154
- name: Download all the dists
155-
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
155+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
156156
with:
157157
name: python-package-distributions
158158
path: dist/

.github/workflows/third_party.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ jobs:
5252
timeout-minutes: 60
5353
steps:
5454
- name: Install the latest version of uv
55-
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
55+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
5656
with:
5757
python-version: ${{ matrix.python-version }}
5858
- name: Checkout pydantic
5959
run: git clone --depth=1 https://github.com/pydantic/pydantic.git || git clone --depth=1 https://github.com/pydantic/pydantic.git
6060
- name: Checkout typing_extensions
61-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
61+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
6262
with:
6363
path: typing-extensions-latest
6464
persist-credentials: false
@@ -85,13 +85,13 @@ jobs:
8585
timeout-minutes: 60
8686
steps:
8787
- name: Install the latest version of uv
88-
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
88+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
8989
with:
9090
python-version: ${{ matrix.python-version }}
9191
- name: Checkout typing_inspect
9292
run: git clone --depth=1 https://github.com/ilevkivskyi/typing_inspect.git || git clone --depth=1 https://github.com/ilevkivskyi/typing_inspect.git
9393
- name: Checkout typing_extensions
94-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
94+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
9595
with:
9696
path: typing-extensions-latest
9797
persist-credentials: false
@@ -120,13 +120,13 @@ jobs:
120120
timeout-minutes: 60
121121
steps:
122122
- name: Install the latest version of uv
123-
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
123+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
124124
with:
125125
python-version: ${{ matrix.python-version }}
126126
- name: Check out pycroscope
127127
run: git clone --depth=1 https://github.com/JelleZijlstra/pycroscope.git || git clone --depth=1 https://github.com/JelleZijlstra/pycroscope.git
128128
- name: Checkout typing_extensions
129-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
129+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
130130
with:
131131
path: typing-extensions-latest
132132
persist-credentials: false
@@ -155,13 +155,13 @@ jobs:
155155
timeout-minutes: 60
156156
steps:
157157
- name: Install the latest version of uv
158-
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
158+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
159159
with:
160160
python-version: ${{ matrix.python-version }}
161161
- name: Check out typeguard
162162
run: git clone --depth=1 https://github.com/agronholm/typeguard.git || git clone --depth=1 https://github.com/agronholm/typeguard.git
163163
- name: Checkout typing_extensions
164-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
164+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
165165
with:
166166
path: typing-extensions-latest
167167
persist-credentials: false
@@ -193,13 +193,13 @@ jobs:
193193
timeout-minutes: 60
194194
steps:
195195
- name: Install the latest version of uv
196-
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
196+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
197197
with:
198198
python-version: ${{ matrix.python-version }}
199199
- name: Check out typed-argument-parser
200200
run: git clone --depth=1 https://github.com/swansonk14/typed-argument-parser.git || git clone --depth=1 https://github.com/swansonk14/typed-argument-parser.git
201201
- name: Checkout typing_extensions
202-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
202+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
203203
with:
204204
path: typing-extensions-latest
205205
persist-credentials: false
@@ -236,13 +236,13 @@ jobs:
236236
timeout-minutes: 60
237237
steps:
238238
- name: Install the latest version of uv
239-
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
239+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
240240
with:
241241
python-version: ${{ matrix.python-version }}
242242
- name: Checkout mypy for stubtest and mypyc tests
243243
run: git clone --depth=1 https://github.com/python/mypy.git || git clone --depth=1 https://github.com/python/mypy.git
244244
- name: Checkout typing_extensions
245-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
245+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
246246
with:
247247
path: typing-extensions-latest
248248
persist-credentials: false
@@ -272,13 +272,13 @@ jobs:
272272
timeout-minutes: 60
273273
steps:
274274
- name: Install the latest version of uv
275-
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
275+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
276276
with:
277277
python-version: ${{ matrix.python-version }}
278278
- name: Checkout cattrs
279279
run: git clone --depth=1 https://github.com/python-attrs/cattrs.git || git clone --depth=1 https://github.com/python-attrs/cattrs.git
280280
- name: Checkout typing_extensions
281-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
281+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
282282
with:
283283
path: typing-extensions-latest
284284
persist-credentials: false
@@ -310,13 +310,13 @@ jobs:
310310
timeout-minutes: 60
311311
steps:
312312
- name: Install the latest version of uv
313-
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
313+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
314314
with:
315315
python-version: ${{ matrix.python-version }}
316316
- name: Checkout sqlalchemy
317317
run: git clone -b ${{ matrix.checkout-ref }} --depth=1 https://github.com/sqlalchemy/sqlalchemy.git || git clone -b ${{ matrix.checkout-ref }} --depth=1 https://github.com/sqlalchemy/sqlalchemy.git
318318
- name: Checkout typing_extensions
319-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
319+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
320320
with:
321321
path: typing-extensions-latest
322322
persist-credentials: false
@@ -342,13 +342,13 @@ jobs:
342342
python-version: [ "3.11", "3.12", "3.13" ]
343343
steps:
344344
- name: Install the latest version of uv
345-
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
345+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
346346
with:
347347
python-version: ${{ matrix.python-version }}
348348
- name: Checkout litestar
349349
run: git clone --depth=1 https://github.com/litestar-org/litestar.git || git clone --depth=1 https://github.com/litestar-org/litestar.git
350350
- name: Checkout typing_extensions
351-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
351+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
352352
with:
353353
path: typing-extensions-latest
354354
persist-credentials: false
@@ -405,7 +405,7 @@ jobs:
405405
issues: write
406406

407407
steps:
408-
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
408+
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
409409
with:
410410
github-token: ${{ secrets.GITHUB_TOKEN }}
411411
script: |

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ repos:
2020
rev: v1.0.2
2121
hooks:
2222
- id: sphinx-lint
23+
args: [--enable=default-role]
2324
- repo: https://github.com/python-jsonschema/check-jsonschema
2425
rev: 0.37.1
2526
hooks:

doc/index.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ Python version in which each feature was added to :py:mod:`typing` and the
269269
- :pep:`673`
270270
* - :class:`sentinel`
271271
- 3.15
272-
- 4.14.0 (originally under the name `Sentinel`)
272+
- 4.14.0 (originally under the name ``Sentinel``)
273273
- :pep:`661`
274274
* - :class:`TypeAliasType`
275275
- 3.12
@@ -587,7 +587,7 @@ Special typing primitives
587587
``typing_extensions`` backports various bug fixes and improvements
588588
to ``TypedDict``.
589589

590-
Features backported by `typing_extensions` include:
590+
Features backported by ``typing_extensions`` include:
591591

592592
* :py:class:`typing.TypedDict` does not store runtime information about which
593593
(if any) keys are non-required in Python 3.8, and does not honor the
@@ -773,8 +773,8 @@ Special typing primitives
773773

774774
.. versionchanged:: 4.12.0
775775

776-
It is now disallowed to use a `TypeVar` with a default value after a
777-
`TypeVarTuple` in a type parameter list. This matches the CPython
776+
It is now disallowed to use a ``TypeVar`` with a default value after a
777+
``TypeVarTuple`` in a type parameter list. This matches the CPython
778778
implementation of PEP 696 on Python 3.13+.
779779

780780
.. versionchanged:: 4.16.0
@@ -1311,13 +1311,13 @@ Sentinel objects
13111311

13121312
- Sentinels can now be pickled. They are reduced as singletons, which
13131313
means that they also preserve their identity when copied or deep-copied.
1314-
- `Sentinel` has been renamed to `sentinel`. `Sentinel` is retained as a
1314+
- ``Sentinel`` has been renamed to ``sentinel``. ``Sentinel`` is retained as a
13151315
soft-deprecated alias, for backwards compatibility.
1316-
- The default repr of a sentinel `X = sentinel("X")` is now `X`, rather
1317-
than `<X>`.
1318-
- Passing `repr` as a positional argument to the constructor is deprecated.
1319-
- Passing `name` as a keyword argument to the constructor is deprecated.
1320-
- Subclassing `sentinel` is deprecated.
1316+
- The default repr of a sentinel ``X = sentinel("X")`` is now ``X``, rather
1317+
than ``<X>``.
1318+
- Passing ``repr`` as a positional argument to the constructor is deprecated.
1319+
- Passing ``name`` as a keyword argument to the constructor is deprecated.
1320+
- Subclassing ``sentinel`` is deprecated.
13211321
- Assigning arbitrary attributes to a sentinel is deprecated.
13221322

13231323

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "flit_core.buildapi"
66
# Project metadata
77
[project]
88
name = "typing_extensions"
9-
version = "4.16.0"
9+
version = "4.16.1.dev0"
1010
description = "Backported and Experimental Type Hints for Python 3.9+"
1111
readme = "README.md"
1212
requires-python = ">=3.9"

0 commit comments

Comments
 (0)