Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
The documentation for
asyncpg.pool.Pool.set_connect_argsmakes no mention that there are 2 particular kwargs that are already being passed toconnectby the pool when it creates new connections:asyncpg/asyncpg/pool.py
Lines 459 to 463 in 92c2d81
Before reading the source, I incorrectly assumed that any of
connect's kwargs are safe to pass toPool.set_connect_args, but if you pass eitherlooporconnection_classyou'll end up with a traceback like this:Not hard to fix in my app, but it'd be great to update the docs to maybe save future users some time.