Plugin: Use mypy to enrich AST with types
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 20.6k
- Fork
- 3.3k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
With the inspect/ast modules I can get an AST of e.g. a function and inspect variables - but in terms of types, I can only get the annotations from the signature (AFAIK).
Can mypy enrich the rest of the tree with types? And preferably expose this so that plugins can be written for it?
Does mypy already build a typed AST under the hood? Can you point me to where it happens?
Thank you
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
L’issue menziona i moduli inspect e ast di Python, ma non indica file, test o punti di ingresso di mypy. Inizia individuando dove mypy costruisce il suo AST tipizzato e determinando se sia fattibile un’interfaccia supportata per i plugin; il lavoro sarebbe completo quando esisterà un modo definito per consentire ai plugin di accedere ai tipi inferiti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- compilers
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100