Skip to content

Commit c2484ab

Browse files
AlexWaygoodsrittau
andcommitted
Drop Python 3.9 support and keep testing early patch releases
Raise the minimum supported Python version to 3.10. Run early CPython patch releases on Ubuntu 24.04 when setup-python lacks builds for newer runners, and check for the latest available patch in each supported minor. Cover both early and current releases of Python 3.14 and 3.15. Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
1 parent cfde842 commit c2484ab

5 files changed

Lines changed: 45 additions & 23 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -55,25 +55,41 @@ jobs:
5555
matrix:
5656
# We try to test on the earliest available bugfix release of each
5757
# Python version, because typing sometimes changed between bugfix releases.
58+
# For some of these versions, setup-python only provides these builds
59+
# on older versions of Ubuntu.
5860
# For available versions, see:
5961
# https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
60-
python-version:
61-
- "3.9"
62-
- "3.9.12"
63-
- "3.10"
64-
- "3.10.4"
65-
- "3.11"
66-
- "3.11.0"
67-
- "3.12"
68-
- "3.12.0"
69-
- "3.13"
70-
- "3.13.0"
71-
- "3.14"
72-
- "pypy3.9"
73-
- "pypy3.10"
74-
- "pypy3.11"
75-
76-
runs-on: ubuntu-latest
62+
include:
63+
- os: ubuntu-latest
64+
python-version: "3.10"
65+
- os: ubuntu-24.04
66+
python-version: "3.10.4"
67+
- os: ubuntu-latest
68+
python-version: "3.11"
69+
- os: ubuntu-24.04
70+
python-version: "3.11.0"
71+
- os: ubuntu-latest
72+
python-version: "3.12"
73+
- os: ubuntu-24.04
74+
python-version: "3.12.0"
75+
- os: ubuntu-latest
76+
python-version: "3.13"
77+
- os: ubuntu-24.04
78+
python-version: "3.13.0"
79+
- os: ubuntu-latest
80+
python-version: "3.14"
81+
- os: ubuntu-24.04
82+
python-version: "3.14.0"
83+
- os: ubuntu-latest
84+
python-version: "3.15"
85+
- os: ubuntu-latest
86+
python-version: "3.15.0"
87+
- os: ubuntu-latest
88+
python-version: "pypy3.10"
89+
- os: ubuntu-latest
90+
python-version: "pypy3.11"
91+
92+
runs-on: ${{ matrix.os }}
7793

7894
permissions:
7995
contents: read
@@ -89,6 +105,9 @@ jobs:
89105
with:
90106
python-version: ${{ matrix.python-version }}
91107
allow-prereleases: true
108+
# Test the latest patch release for entries like "3.11", even when
109+
# the runner has an older patch release cached.
110+
check-latest: true
92111

93112
- name: Install coverage
94113
run: |

‎CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Unreleased
2+
3+
- Drop support for Python 3.9.
4+
15
# Release 4.16.0 (July 2, 2026)
26

37
No user-facing changes since 4.16.0rc2.

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
The `typing_extensions` module serves two related purposes:
1111

1212
- Enable use of new type system features on older Python versions. For example,
13-
`typing.TypeGuard` is new in Python 3.10, but `typing_extensions` allows
13+
`typing.TypeIs` is new in Python 3.13, but `typing_extensions` allows
1414
users on previous Python versions to use it too.
1515
- Enable experimentation with new type system PEPs before they are accepted and
1616
added to the `typing` module.

‎doc/index.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ providing runtime support for type hints as specified by :pep:`484` and subseque
88
PEPs. The module serves two related purposes:
99

1010
- Enable use of new type system features on older Python versions. For example,
11-
:py:data:`typing.TypeGuard` is new in Python 3.10, but ``typing_extensions`` allows
11+
:py:data:`typing.TypeIs` is new in Python 3.13, but ``typing_extensions`` allows
1212
users on previous Python versions to use it too.
1313
- Enable experimentation with type system features proposed in new PEPs before they are accepted and
1414
added to the :py:mod:`typing` module.
@@ -143,7 +143,7 @@ Example usage::
143143
Python version support
144144
----------------------
145145

146-
``typing_extensions`` currently supports Python versions 3.9 and higher. In the future,
146+
``typing_extensions`` currently supports Python versions 3.10 and higher. In the future,
147147
support for older Python versions will be dropped some time after that version
148148
reaches end of life.
149149

‎pyproject.toml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ build-backend = "flit_core.buildapi"
77
[project]
88
name = "typing_extensions"
99
version = "4.16.1.dev0"
10-
description = "Backported and Experimental Type Hints for Python 3.9+"
10+
description = "Backported and Experimental Type Hints for Python 3.10+"
1111
readme = "README.md"
12-
requires-python = ">=3.9"
12+
requires-python = ">=3.10"
1313
license = "PSF-2.0"
1414
license-files = ["LICENSE"]
1515
keywords = [
@@ -34,7 +34,6 @@ classifiers = [
3434
"Operating System :: OS Independent",
3535
"Programming Language :: Python :: 3",
3636
"Programming Language :: Python :: 3 :: Only",
37-
"Programming Language :: Python :: 3.9",
3837
"Programming Language :: Python :: 3.10",
3938
"Programming Language :: Python :: 3.11",
4039
"Programming Language :: Python :: 3.12",

0 commit comments

Comments
 (0)