Skip to content

Commit 81f882f

Browse files
committed
refactor: Extend a shared __all__ in http_clients instead of duplicating it
1 parent c8b3628 commit 81f882f

1 file changed

Lines changed: 9 additions & 14 deletions

File tree

‎src/apify_client/http_clients/__init__.py‎

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,16 @@
1616
) as _httpx_import:
1717
from apify_client.http_clients._httpx import HttpxHttpClient, HttpxHttpClientAsync
1818

19+
__all__ = [
20+
'HttpClient',
21+
'HttpClientAsync',
22+
'HttpResponse',
23+
'ImpitHttpClient',
24+
'ImpitHttpClientAsync',
25+
]
26+
1927
if _httpx_import.available:
20-
__all__ = [
21-
'HttpClient',
22-
'HttpClientAsync',
23-
'HttpResponse',
28+
__all__ += [
2429
'HttpxHttpClient',
2530
'HttpxHttpClientAsync',
26-
'ImpitHttpClient',
27-
'ImpitHttpClientAsync',
28-
]
29-
else:
30-
__all__ = [
31-
'HttpClient',
32-
'HttpClientAsync',
33-
'HttpResponse',
34-
'ImpitHttpClient',
35-
'ImpitHttpClientAsync',
3631
]

0 commit comments

Comments
 (0)