Commit ab6bd09
committed
Defer httpx ImportError to instantiation time for Sphinx compatibility
The module-level ImportError prevented Sphinx autodoc from importing
async_client when httpx is not installed. Now the module imports
successfully (setting httpx=None) and raises ImportError only when
AsyncAnticaptchaClient is instantiated without httpx.
https://claude.ai/code/session_01Pimg4VAco2v4srPeZj44Zm1 parent 88fbf31 commit ab6bd09
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 12 | + | |
16 | 13 | | |
17 | 14 | | |
18 | 15 | | |
| |||
130 | 127 | | |
131 | 128 | | |
132 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| |||
0 commit comments