python / python/typeshed

Drop support for Python 3.10 (around January/April 2027)

Offen
#15,586 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

stubs: removal
Vorherrschende Sprache
Python
Sterne
5.1k
Forks
2.1k
Ø Merge
1 T. 19 Std.
Gemergte PRs (30 T.)
82

Beschreibung

Python 3.10 is expected to reach its end-of-life phase in October 2026 (PEP 619). We will remove support in two steps, approximately three and six months after it reached EOL.

How to remove support

Expected January 2027
  • Update the version in README.md.
  • Update various fields in pyproject.toml.
  • Remove 3.10 from CI and test scripts.
  • Update stubtest allow lists. Also check whether items can be moved to the common allow lists.
  • Remove requires-python >= 3.11 and python-version >= 3.11 from METADATA.toml.
  • Remove the version suffix from regression tests ending with -py311.py.
  • Remove tomli from requirements-tests.txt.
Expected April 2027
  • Remove 3.10 exclusive branches from stubs.
    • Switch EnumType/EnumMeta names in stdlib/enum.pyi, making EnumType the "real" name
  • Remove obsolete stdlib modules (see VERSIONS).
    • binhex
    • distutils.command.bdist_msi
  • Replace typing_extensions imports.
    • TypeVarTuple
    • Required/NotRequired
    • Self
    • LiteralString
    • dataclass_transform
  • Update "Supported type system features" section in CONTRIBUTING.md as necessary.

(Please amend as necessary.)

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne mit der Checkliste für Januar 2027 in README.md, pyproject.toml, CI und Testskripten, den stubtest-Allow-Listen, METADATA.toml, Regressionstests und requirements-tests.txt. Überprüfe anschließend die April-Checkliste in stdlib/enum.pyi, VERSIONS, den betroffenen Stubs und CONTRIBUTING.md. Abgeschlossen ist die Aufgabe, wenn die Unterstützung für Python 3.10 in beiden Phasen entfernt und die relevanten Tests und Metadaten aktualisiert sind.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
documentation, testing-qa, tooling
Issue-Typ
Refactoring
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Ruhig
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.