python / python/mypy

Don't use builtins.function and others anymore

Aperta
#8,240 8 commenti 5 reazioni 1 assegnatario Vedi su GitHub

@JelleZijlstra ci sta già lavorando.

Dal 31/3/2022.

affects-typeshed feature good-second-issue priority-0-high
Lingua principale
Python
Stelle
20.6k
Fork
3.3k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

There are at least two classes in typeshed's builtins.pyi (
class function and class ellipsis, that should not belong there.

The issues in typeshed are:

However, typeshed's CI will break if you still use these classes. Please find another way to implement this and let typeshed remove those classes (respectively rename ellipsis to _ellipsis).

The problem is that other software does depend on typeshed as well and for example Jedi this leads to bugs.

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.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.