Skip to content

Commit 3b6de42

Browse files
committed
style(db): use collections.abc for AsyncGenerator
Use collections.abc.AsyncGenerator instead of typing.AsyncGenerator for modern Python 3.9+ compatibility. Auto-fixed by ruff linter.
1 parent 5ac66af commit 3b6de42

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

db/connection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
async support for multiple database backends.
66
"""
77

8+
from collections.abc import AsyncGenerator
89
from contextlib import asynccontextmanager
9-
from typing import Any, AsyncGenerator
10+
from typing import Any
1011

1112
from sqlalchemy import text
1213
from sqlalchemy.ext.asyncio import (

0 commit comments

Comments
 (0)