openzim / openzim/python-scraperlib
Be more precise than generic `Callable` in type hints
Aperta
@benoit74 ci sta già lavorando.
Dal 14/11/2024.
enhancement
- Lingua principale
- Python
- Stelle
- 31
- Fork
- 27
- Merge medio
- 3g 7h
- PR unite (30g)
- 2
Descrizione
callback argument of zim.creater.Creator.add_item_for is reported by pyright as partially unknown when in strict mode due to the use of generic Callable.
This is a problem in projects setting pyright in strict mode.
The same generic Callable seems to be an issue in other parts of the code.
We should probably fix this with a more precise type hint,
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.
Valutazione
Questa issue non è ancora stata valutata.