Update type annotations in connection.py#429
Open
RA80533 wants to merge 11 commits into
Open
Conversation
jettify
marked this pull request as ready for review
May 3, 2023 02:56
jettify
reviewed
May 3, 2023
Member
|
Changes looks good but you can run to repro. |
The specific annotations were copied from pool.py.
RA80533
force-pushed
the
chore/typing/connection
branch
from
May 10, 2023 20:22
9e671b6 to
7e3789f
Compare
Codecov Report
@@ Coverage Diff @@
## master #429 +/- ##
==========================================
+ Coverage 86.93% 87.02% +0.08%
==========================================
Files 6 6
Lines 490 501 +11
Branches 73 73
==========================================
+ Hits 426 436 +10
- Misses 48 49 +1
Partials 16 16
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Contributor
Author
|
I rebased the branch with the recent changes. Note the changes in aa8d847; the commit contains the changes associated with the use of |
3 tasks
|
Any reason this is being held up? This is ugly: import aioodbc # pyright: ignore[reportMissingTypeStubs]not to mention all the other type issues when using even more strict rule sets such as in basedpyright. |
Contributor
Author
|
Does this look like it can be merged, @jettify? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What do these changes do?
asyncio.Future-returning methods to native coroutines, updating the return types in the process1Are there changes in behavior for the user?
Users should now have consistent type hinting when interacting the public API.
Related issue number
#275
#421
Checklist
CHANGESfolder<issue_id>.<type>(e.g.588.bugfix)issue_idchange it to the pr id after creating the PR.feature: Signifying a new feature..bugfix: Signifying a bug fix..doc: Signifying a documentation improvement..removal: Signifying a deprecation or removal of public API..misc: A ticket has been closed, but it is not of interest to users.Fix issue with non-ascii contents in doctest text files.Footnotes
https://github.com/aio-libs/aioodbc/pull/429#discussion_r1183201672 ↩
https://peps.python.org/pep-0563/ ↩