|
1 | 1 | {% from "helpers.jinja" import safe_docstring %} |
| 2 | +{% set modules = ["exceptions", "extensions", "gates", "ionq_client", "pagination", "polling", "session"] %} |
2 | 3 | {{ safe_docstring(package_description) }} |
3 | | -from .exceptions import ( |
4 | | - APIConnectionError, |
5 | | - APIError, |
6 | | - APITimeoutError, |
7 | | - AuthenticationError, |
8 | | - BadRequestError, |
9 | | - IonQError, |
10 | | - NotFoundError, |
11 | | - PermissionDeniedError, |
12 | | - RateLimitError, |
13 | | - ServerError, |
14 | | -) |
15 | | -from .extensions import AsyncEventHook, ClientExtension, EventHook |
16 | | -from .gates import gpi2_matrix, gpi_matrix, ms_matrix, zz_matrix |
17 | | -from .pagination import aiter_jobs, aiter_session_jobs, iter_jobs, iter_session_jobs |
18 | | -from .polling import ( |
19 | | - JobFailedError, |
20 | | - JobTimeoutError, |
21 | | - async_wait_for_job, |
22 | | - wait_for_job, |
23 | | -) |
24 | | -from .session import SessionManager |
25 | | -from .client import AuthenticatedClient, Client |
26 | | -from .ionq_client import IonQClient, __version__ |
27 | | -from .types import UNSET, Unset |
| 4 | +from . import {{ modules | join(", ") }} |
| 5 | +from .client import AuthenticatedClient, Client # noqa: F401 |
| 6 | +{% for m in modules %} |
| 7 | +from .{{ m }} import * # noqa: F403 |
| 8 | +{% endfor %} |
| 9 | +from .types import UNSET, Unset # noqa: F401 |
28 | 10 |
|
29 | | -__all__ = ( |
30 | | - "UNSET", |
31 | | - "APIConnectionError", |
32 | | - "APIError", |
33 | | - "APITimeoutError", |
34 | | - "AsyncEventHook", |
35 | | - "AuthenticatedClient", |
36 | | - "AuthenticationError", |
37 | | - "BadRequestError", |
38 | | - "Client", |
39 | | - "ClientExtension", |
40 | | - "EventHook", |
41 | | - "IonQClient", |
42 | | - "IonQError", |
43 | | - "JobFailedError", |
44 | | - "JobTimeoutError", |
45 | | - "NotFoundError", |
46 | | - "PermissionDeniedError", |
47 | | - "RateLimitError", |
48 | | - "ServerError", |
49 | | - "SessionManager", |
50 | | - "Unset", |
51 | | - "__version__", |
52 | | - "aiter_jobs", |
53 | | - "aiter_session_jobs", |
54 | | - "async_wait_for_job", |
55 | | - "gpi2_matrix", |
56 | | - "gpi_matrix", |
57 | | - "iter_jobs", |
58 | | - "iter_session_jobs", |
59 | | - "ms_matrix", |
60 | | - "wait_for_job", |
61 | | - "zz_matrix", |
62 | | -) |
| 11 | +__all__ = sorted({ |
| 12 | + {{ modules | map("tojson") | join(", ") }}, |
| 13 | + "AuthenticatedClient", "Client", "UNSET", "Unset", |
| 14 | +{% for m in modules %} |
| 15 | + *{{ m }}.__all__, |
| 16 | +{% endfor %} |
| 17 | +}) |
0 commit comments