python / python/mypy

Will mypy work universally again? Or is the list of supported platforms now more or less set in stone?

Aperta
#21,460 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

documentation
Lingua principale
Python
Stelle
20.6k
Fork
3.3k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

Documentation

ERROR: Could not find a version that satisfies the requirement librt>=0.10.0; platform_python_implementation != "PyPy" (from mypy) (from versions: 0.0.1)

Changelog has been less than on the nose on dropped platform support lately, so.. what is changed about that?

Mypy now has an extra dependency on the librt PyPI package

I believe in 1.19 librt became a hard dependency (ImportError) even though as of mypy 2.0.0 it still works without it (sans --incremental). (I created a stub librt/internal.py file; that was all I needed to be able to type check after upgrade, so I know it was not necessary.)

There are still some minor semantic differences between parallel and non-parallel modes, which we will be fixing in future mypy releases.

Relatedly, it looks like the more complex non-python dependency ast-serialize is also not strictly needed right now (other than for --native-parser), but current documentation does clarify whether that is just temporarily so (until parsers reach feature parity). Should users expect that some future mypy version will hard-depend on OpenAI-owned code?

Is there a point in either releasing a stub universal python wheel or try/excepting the optional features so mypy remains usable on platforms that cannot use either or both new non-python dependencies?
Or should the Changelog just enumerate positively what arch/platform list now remain, plus maybe an update to the Does it run on PyPy? section?

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

Esamina innanzitutto la voce del changelog collegata e la sezione della documentazione “Does it run on PyPy?”, insieme alle note attuali su librt e ast-serialize. Il lavoro è completato quando sono documentate le piattaforme supportate e se queste dipendenze sono opzionali o obbligatorie, inclusa qualsiasi chiarificazione necessaria nel changelog.

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

Valutazione

Stack tecnologico
python
Ambito
devtools, documentation
Tipo di issue
Documentazione
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Tranquilla
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.