Static typing
- Lingua principale
- Python
- Stelle
- 653
- Fork
- 217
- Merge medio
- 2g 21h
- PR unite (30g)
- 2
Descrizione
traitlets' types are used to perform run-time checks. Would adding type annotation on them make sense?
It seems that we have some information that we could use to potentially find bugs ahead of time. For instance, should a `Bool` be statically typed as a `bool`? I don't even know if that makes sense :smile:
One problem I'm seeing (for instance in https://github.com/jupyter/nbclient) is that adding type annotations on traits doesn't seem to have any effect.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start by investigating traitlets' runtime type checks and the annotation behavior observed in nbclient. Clarify whether traits such as Bool can expose static types such as bool, and define tests or examples that demonstrate the intended behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- tooling
- 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