aio-libs / aiomysql

aiomysql is a library for accessing a MySQL database from the asyncio
https://aiomysql.rtfd.io
MIT License
1.73k stars 253 forks source link

[WIP] 🏷️ Add type hints #911

Closed DavidRomanovizc closed 7 months ago

DavidRomanovizc commented 1 year ago

What do these changes do?

This pull request adds type hints to aiomysql, making it easier for developers to understand the API and to use the library in their code. Due to cyclic dependencies between the cursor and connection classes, two files have been merged into one. Additionally, the _ContextManager class has been generalized as much as possible to improve code reuse and maintainability.

Related issue number

707

Checklist

DavidRomanovizc commented 1 year ago

@cyrus01337