MagicStack / MagicStack/asyncpg
DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
還沒有人認領這個 Issue。
- 主要語言
- Python
- 星號
- 8.1k
- 分支
- 468
- PR 合併指標
- 30 天內沒有已合併 PR
描述
* **asyncpg version**: 0.22.0
* **PostgreSQL version**: local `postgres:13-alpine` via Docker
* **Python version**: 3.9.1
* **Platform**: macOS 11.2.3; Linux 4.19.121 (via Docker Desktop for Mac)
* **Do you use pgbouncer?**: no
* **Did you install asyncpg with pip?**: via poetry
The following warning is produced when running a [simple CRUD example from SQLAlchemy's docs](https://docs.sqlalchemy.org/en/14/orm/examples.html#examples-asyncio):
```
/usr/local/lib/venv/someproject-asdfqwer-py3.9/lib/python3.9/site-packages/asyncpg/connect_utils.py:544: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
tr, pr = await loop.create_connection(
```
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 asyncpg/connect_utils.py 約第 544 行開始,使用 issue 中連結的 SQLAlchemy asyncio CRUD 範例重現該警告。檢查連線的建立方式,並驗證該範例在保留連線行為的同時不再發出 Python 3.9 棄用警告。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- postgresql, python
- 領域
- databases
- Issue 類型
- 缺陷
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100