Disallow locally-generated types from escaping their function

Aperta
#4,690 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python
Ambito
compilers

Direzione di ricerca

Start by tracing how NamedTuples declared inside functions and callable-generated subtype types are represented and whether they can escape their defining function. Investigate the coarse and fine-grained incremental interactions described in the issue. Done means locally generated types cannot escape the function without breaking supported type-checking and incremental behavior.

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

Descrizione

topic-runtime-semantics topic-variable-scope

We should ban locally generated types (such as NamedTuples declared inside of functions and types generated by uses of callable) from escaping the function where they are created.

It isn't really a good idea to do in the first place and it has difficult interactions with both coarse and finen-grained incremental.

Lingua principale
Python
Stelle
20.6k
Fork
3.3k
Merge medio
1g 18h
PR unite (30g)
54

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.

Altre issue di python/mypy

Tutte le issue di python/mypy

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.