Type hints and type check
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Inizia leggendo PR #264 e i controlli di tipo e gli asserts esistenti di connector, quindi esamina la documentazione del package e i riferimenti collegati a typing e mypy. Il primo passo consiste nel decidere se aggiungere annotazioni di tipo e con quale coerenza usare i controlli di tipo a runtime o gli asserts; il lavoro sarà considerato completato quando l’approccio concordato sarà applicato all’intero package.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Type hints is a modern Python way to provide type information (see typing mypy). PR https://github.com/tarantool/tarantool-python/pull/264 is the first one to potentially use type hints, but it would be nice to have it anywhere.
Type asserts is a more tricky question. For now there are some minor type checks and asserts in connector. Some may also be implemented in PR #264. But it is a big question if they should be use. It seems that there are both adepts of using (since it is a convenient concept) and forbidding to use (since it contradicts Python duck typing principle) it. For example, see this StackOverflow thread. One way or another, it would be good to at least have a consistency on this question.
Since now package is fully documented, it should be easy to implement type hints and asserts after one decide what approach we should stick to. But choosing the approach is the question.
- Lingua principale
- Python
- Stelle
- 108
- Fork
- 51
- Merge medio
- 1g 8h
- PR unite (30g)
- 1
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
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.
Altre issue di tarantool/tarantool-python
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
tarantool/tarantool-python#325 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
tarantool/tarantool-python#340 ·
-
`load_schema` race Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
tarantool/tarantool-python#333 ·
-
3sp feature teamE
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
tarantool/tarantool-python#309 · 1 commento ·
-
customer Database API
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 45/100
tarantool/tarantool-python#307 · 1 commento ·
Tutte le issue di tarantool/tarantool-python
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
-
🐛 Bug 🔔 Pending processing
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
jumpserver/jumpserver#17584 ·