-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate bare connector close #3417
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3417 +/- ##
==========================================
+ Coverage 97.94% 97.95% +<.01%
==========================================
Files 44 44
Lines 8522 8543 +21
Branches 1383 1383
==========================================
+ Hits 8347 8368 +21
Misses 74 74
Partials 101 101
Continue to review full report at Codecov.
|
@@ -82,6 +82,10 @@ def noop(*args, **kwargs): # type: ignore | |||
return # type: ignore | |||
|
|||
|
|||
async def noop2(*args: Any, **kwargs: Any) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's rename it to represent the intent:
async def noop2(*args: Any, **kwargs: Any) -> None: | |
async def async_noop(*args: Any, **kwargs: Any) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Both noops are async.
- I don't care too much, the function is internal and will be removed in aiohttp 4.
Use
async with connector:
andawait connector.close()
instead