aio-libs / aio-libs/aiodocker

Modernize the codebase

未關閉
#1,028 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
537
分支
118
PR 合併指標
30 天內沒有已合併 PR

描述

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`

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。