MagicStack / asyncpg

A fast PostgreSQL Database Client Library for Python/asyncio.
Apache License 2.0
6.99k stars 404 forks source link

Add typing to auxiliary classes around `Pool` #1197

Closed DanielNoord closed 1 week ago

DanielNoord commented 3 weeks ago

In an effort to add more type annotations to common interfaces I decided to tackle some of the simpler methods. Also, to familiarise myself with the CI and project.

There is nothing groundbreaking in this PR. It:

Let me know if there are any questions. I didn't really see any style checking recommendations in the documentation or setup.py so just used what black, ruff and others have decided is the de facto style of "modern" Python code.

DanielNoord commented 2 weeks ago

Removed the stringified annotations based on the review in https://github.com/MagicStack/asyncpg/pull/1198 as that seems to be the preferred style.

DanielNoord commented 1 week ago

@elprans Anything I can do to help get this merged? I don't want to spam you with pull requests but these are relatively trivial to make and there is still many more to make as well.

I'd like to find the most productive way to get these and other pull requests merged. For example, is there anybody else in the MagicStack team that can help review and merge these?