Repository navigation
Commit 6dab402
committed
Fix lint failures (mypy, unasync) on the h2 send-lock change
- tests/_sync/test_http2_thread_safety.py: add type annotations so mypy
strict passes (FakeStream now subclasses httpcore.NetworkStream, all
methods annotated).
- Align the new comments between httpcore/_async/http2.py (unasync source
of truth) and httpcore/_sync/http2.py so scripts/unasync.py --check
passes; use a magic trailing comma on the split _send_request_headers
call so ruff format and unasync agree.1 parent 32b8974 commit 6dab402
1 file changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
159 | 162 | | |
160 | 163 | | |
161 | 164 | | |
| |||
0 commit comments