We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I was expecting asyncpg.connect() to have a concrete type, but I'm new to python and I may be overlooking something obvious. Thank you.
The text was updated successfully, but these errors were encountered:
I ended up having to walk the AST to find the Connection class, is there any reason why it's not exposed by default?
Connection
import asyncpg from asyncpg.connection import Connection async def get_postgres() -> Connection: client: Connection = await asyncpg.connect( user=settings.POSTGRES_USER, password=settings.POSTGRES_PASSWORD, database=settings.POSTGRES_DATABASE, host=settings.POSTGRES_HOST, ) return client }
https://github.com/MagicStack/asyncpg/blob/master/asyncpg/connection.py#L1795
Sorry, something went wrong.
No branches or pull requests
I was expecting asyncpg.connect() to have a concrete type, but I'm new to python and I may be overlooking something obvious. Thank you.
The text was updated successfully, but these errors were encountered: