Conversation
There was a problem hiding this comment.
CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
| method: str, | ||
| url: StrOrURL, | ||
| **kwargs: Unpack[_RequestOptions], | ||
| ) -> "_RequestContextManager": ... |
Check notice
Code scanning / CodeQL
Statement has no effect
| *, | ||
| server_kwargs: Optional[Dict[str, Any]] = None, | ||
| **kwargs: Any | ||
| ) -> Awaitable[TestClient]: ... |
Check notice
Code scanning / CodeQL
Statement has no effect
| class AiohttpServer(Protocol): | ||
| def __call__( | ||
| self, app: Application, *, port: Optional[int] = None, **kwargs: Any | ||
| ) -> Awaitable[TestServer]: ... |
Check notice
Code scanning / CodeQL
Statement has no effect
|
|
||
| def request( | ||
| self, method: str, path: StrOrURL, **kwargs: Unpack[_RequestOptions] | ||
| ) -> _RequestContextManager: ... |
Check notice
Code scanning / CodeQL
Statement has no effect
| self, | ||
| path: StrOrURL, | ||
| **kwargs: Unpack[_RequestOptions], | ||
| ) -> _RequestContextManager: ... |
Check notice
Code scanning / CodeQL
Statement has no effect
| resp = await req.send(conn) | ||
| assert req._writer is not None | ||
| await req._writer | ||
| await t |
Check notice
Code scanning / CodeQL
Statement has no effect
|
|
||
| assert req._writer is not None | ||
| await req._writer | ||
| await t |
Check notice
Code scanning / CodeQL
Statement has no effect
| # normally called during garbage collection. triggers an exception | ||
| # if the connection wasn't already closed | ||
| for c in connections: | ||
| c.__del__() |
Check warning
Code scanning / CodeQL
`__del__` is called explicitly
| with pytest.raises(TypeError): | ||
|
|
||
| class A(ClientSession): | ||
| class A(ClientSession): # type: ignore[misc] |
Check notice
Code scanning / CodeQL
Unused local variable
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8620 +/- ##
==========================================
+ Coverage 97.66% 97.90% +0.24%
==========================================
Files 107 107
Lines 33451 33471 +20
Branches 3928 3938 +10
==========================================
+ Hits 32669 32769 +100
+ Misses 566 518 -48
+ Partials 216 184 -32
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Backport to 3.11: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply e0ff524 on top of patchback/backports/3.11/e0ff5246e1d29b7710ab1a2bbc972b48169f1c05/pr-8620 Backporting merged PR #8620 into master
🤖 @patchback |
…various type annotations (#8635) **This is a backport of PR #8634 as merged into 3.11 (c7293e1).** Co-authored-by: Sam Bull <[email protected]>
Another round of typing all the test files.
I'll check over the diff tomorrow.