Move code to handle Tuple and TypedDict `__getitem__` to plugins
Aperta
@Michael0x2a ci sta già lavorando.
Dal 4/1/2019.
needs discussion
priority-2-low
refactoring
- Lingua principale
- Python
- Stelle
- 20.6k
- Fork
- 3.3k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
Currently, we handle calls to both Tuple and TypedDict's __getitem__ code inside checkexpr. We should consider turning some or all of this code into a plugin.
I think it's somewhat debatable how useful this refactor would be for Tuple's __getitem__, but it would at least make the way we handle TypedDicts more consistent: we currently handle all other TypedDict methods inside of a plugin.
Also see https://github.com/python/mypy/pull/6124#discussion_r245185240 for context.
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.
Valutazione
Questa issue non è ancora stata valutata.