|
1 | | -from __future__ import annotations |
| 1 | +from __future__ import annotations |
2 | 2 |
|
3 | | -import sys |
| 3 | +from typing import TYPE_CHECKING |
4 | 4 |
|
5 | | -from src.mellophone import client as _client |
| 5 | +if TYPE_CHECKING: |
| 6 | + from src.mellophone import ( |
| 7 | + AsyncClientUnavailableError, # noqa: F401 |
| 8 | + BadRequestError, # noqa: F401 |
| 9 | + ForbiddenError, # noqa: F401 |
| 10 | + HttpError, # noqa: F401 |
| 11 | + Mellophone, # noqa: F401 |
| 12 | + NotFoundError, # noqa: F401 |
| 13 | + RequestArgs, # noqa: F401 |
| 14 | + RequestParams, # noqa: F401 |
| 15 | + RequestTimeoutError, # noqa: F401 |
| 16 | + ResponseParseError, # noqa: F401 |
| 17 | + ServerError, # noqa: F401 |
| 18 | + TransportError, # noqa: F401 |
| 19 | + UnauthorizedError, # noqa: F401 |
| 20 | + element_to_dict, # noqa: F401 |
| 21 | + httpx, # noqa: F401 |
| 22 | + merge_value, # noqa: F401 |
| 23 | + normalize_key, # noqa: F401 |
| 24 | + requests, # noqa: F401 |
| 25 | + user_to_xml, # noqa: F401 |
| 26 | + xml_to_json, # noqa: F401 |
| 27 | + ) |
| 28 | +else: |
| 29 | + import sys |
6 | 30 |
|
7 | | -sys.modules[__name__] = _client |
| 31 | + from src.mellophone import client as _client |
| 32 | + |
| 33 | + sys.modules[__name__] = _client |
0 commit comments