Repository navigation
Commit c924aad
authored
refactor: declare per-request options once as TypedDicts in client.py (#186)
Every verb, *_with_response sibling and stream() in both clients now takes **kwargs: Unpack[_RequestOptions] or Unpack[_BodyRequestOptions]. The pass-through layers _request_with_body, _request_with_body_with_response and _assemble_request_kwargs are gone; _request_kwargs drops options left at their default and raises TypeError on an unknown keyword.1 parent b9e2861 commit c924aad
7 files changed
Lines changed: 375 additions & 1200 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
120 | 124 | | |
121 | 125 | | |
122 | 126 | | |
| |||
0 commit comments