aio-libs / aio-libs/aiodocker

Modernize the codebase

Aperta
#1,028 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
537
Fork
118
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

As we now support Python 3.10+ only, there are some old patterns that could be updated.

- Use builtin generics (`list`, `tuple`, `dict`, `type`) (PEP 585)
- Use `|` instead of `Union` and `Optional` with explicit defaults (PEP 604)
- Move ABCs from `typing` to `collections.abc`
- Migrate `@types.coroutine` and `yield from` → `async def __anext__(self): ...` and `await`
- Migrate `asyncio.get_event_loop()` to `asyncio.get_running_loop()` or `asyncio.run()`
- Migrate quoted string annotations in favor of `__future__.annotations`

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.