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
[x] I think the code is well written
[ ] Unit tests for the changes exist
[ ] Documentation reflects the changes
[ ] Add a new news fragment into the CHANGES folder
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
CHANGES
folder