python / python/typeshed

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

Aperta
#15,586 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

stubs: removal
Lingua principale
Python
Stelle
5.1k
Fork
2.1k
Merge medio
1g 19h
PR unite (30g)
82

Descrizione

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.)

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia con la checklist di gennaio 2027 in README.md, pyproject.toml, CI e script di test, gli elenchi di autorizzazione di stubtest, METADATA.toml, i test di regressione e requirements-tests.txt. Poi esamina la checklist di aprile in stdlib/enum.pyi, VERSIONS, gli stub interessati e CONTRIBUTING.md. Il lavoro è completato quando il supporto per Python 3.10 è stato rimosso in entrambe le fasi e i test e i metadati pertinenti sono stati aggiornati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
documentation, testing-qa, tooling
Tipo di issue
Refactoring
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Tranquilla
Chiarezza
Specificata chiaramente
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.