Skip to content

Commit 7ac7a30

Browse files
committed
Explicitly reexport modules
1 parent 83290bf commit 7ac7a30

File tree

22 files changed

+224
-39
lines changed

22 files changed

+224
-39
lines changed

hcloud/actions/__init__.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,25 @@
11
from __future__ import annotations
22

3-
from .client import ( # noqa: F401
3+
from .client import (
44
ActionsClient,
55
ActionsPageResult,
66
BoundAction,
77
ResourceActionsClient,
88
)
9-
from .domain import ( # noqa: F401
9+
from .domain import (
1010
Action,
1111
ActionException,
1212
ActionFailedException,
1313
ActionTimeoutException,
1414
)
15+
16+
__all__ = [
17+
"Action",
18+
"ActionException",
19+
"ActionFailedException",
20+
"ActionTimeoutException",
21+
"ActionsClient",
22+
"ActionsPageResult",
23+
"BoundAction",
24+
"ResourceActionsClient",
25+
]

hcloud/certificates/__init__.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
11
from __future__ import annotations
22

3-
from .client import ( # noqa: F401
3+
from .client import (
44
BoundCertificate,
55
CertificatesClient,
66
CertificatesPageResult,
77
)
8-
from .domain import ( # noqa: F401
8+
from .domain import (
99
Certificate,
1010
CreateManagedCertificateResponse,
1111
ManagedCertificateError,
1212
ManagedCertificateStatus,
1313
)
14+
15+
__all__ = [
16+
"BoundCertificate",
17+
"Certificate",
18+
"CertificatesClient",
19+
"CertificatesPageResult",
20+
"CreateManagedCertificateResponse",
21+
"ManagedCertificateError",
22+
"ManagedCertificateStatus",
23+
]

hcloud/core/__init__.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
from __future__ import annotations
22

3-
from .client import BoundModelBase, ClientEntityBase # noqa: F401
4-
from .domain import BaseDomain, DomainIdentityMixin, Meta, Pagination # noqa: F401
3+
from .client import BoundModelBase, ClientEntityBase
4+
from .domain import BaseDomain, DomainIdentityMixin, Meta, Pagination
5+
6+
__all__ = [
7+
"BoundModelBase",
8+
"ClientEntityBase",
9+
"BaseDomain",
10+
"DomainIdentityMixin",
11+
"Meta",
12+
"Pagination",
13+
]

hcloud/datacenters/__init__.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
from __future__ import annotations
22

3-
from .client import ( # noqa: F401
3+
from .client import (
44
BoundDatacenter,
55
DatacentersClient,
66
DatacentersPageResult,
77
)
8-
from .domain import Datacenter, DatacenterServerTypes # noqa: F401
8+
from .domain import Datacenter, DatacenterServerTypes
9+
10+
__all__ = [
11+
"BoundDatacenter",
12+
"Datacenter",
13+
"DatacenterServerTypes",
14+
"DatacentersClient",
15+
"DatacentersPageResult",
16+
]

hcloud/deprecation/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
from __future__ import annotations
22

3-
from .domain import DeprecationInfo # noqa: F401
3+
from .domain import DeprecationInfo
4+
5+
__all__ = ["DeprecationInfo"]

hcloud/firewalls/__init__.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
11
from __future__ import annotations
22

3-
from .client import BoundFirewall, FirewallsClient, FirewallsPageResult # noqa: F401
4-
from .domain import ( # noqa: F401
3+
from .client import BoundFirewall, FirewallsClient, FirewallsPageResult
4+
from .domain import (
55
CreateFirewallResponse,
66
Firewall,
77
FirewallResource,
88
FirewallResourceAppliedToResources,
99
FirewallResourceLabelSelector,
1010
FirewallRule,
1111
)
12+
13+
__all__ = [
14+
"BoundFirewall",
15+
"CreateFirewallResponse",
16+
"Firewall",
17+
"FirewallResource",
18+
"FirewallResourceAppliedToResources",
19+
"FirewallResourceLabelSelector",
20+
"FirewallRule",
21+
"FirewallsClient",
22+
"FirewallsPageResult",
23+
]

hcloud/floating_ips/__init__.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
from __future__ import annotations
22

3-
from .client import ( # noqa: F401
3+
from .client import (
44
BoundFloatingIP,
55
FloatingIPsClient,
66
FloatingIPsPageResult,
77
)
8-
from .domain import CreateFloatingIPResponse, FloatingIP # noqa: F401
8+
from .domain import CreateFloatingIPResponse, FloatingIP
9+
10+
__all__ = [
11+
"BoundFloatingIP",
12+
"CreateFloatingIPResponse",
13+
"FloatingIP",
14+
"FloatingIPsClient",
15+
"FloatingIPsPageResult",
16+
]

hcloud/helpers/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
from __future__ import annotations
22

3-
from .labels import LabelValidator # noqa: F401
3+
from .labels import LabelValidator
4+
5+
__all__ = ["LabelValidator"]

hcloud/images/__init__.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
from __future__ import annotations
22

3-
from .client import BoundImage, ImagesClient, ImagesPageResult # noqa: F401
4-
from .domain import CreateImageResponse, Image # noqa: F401
3+
from .client import BoundImage, ImagesClient, ImagesPageResult
4+
from .domain import CreateImageResponse, Image
5+
6+
__all__ = [
7+
"BoundImage",
8+
"CreateImageResponse",
9+
"Image",
10+
"ImagesClient",
11+
"ImagesPageResult",
12+
]

hcloud/isos/__init__.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
from __future__ import annotations
22

3-
from .client import BoundIso, IsosClient, IsosPageResult # noqa: F401
4-
from .domain import Iso # noqa: F401
3+
from .client import BoundIso, IsosClient, IsosPageResult
4+
from .domain import Iso
5+
6+
__all__ = [
7+
"BoundIso",
8+
"Iso",
9+
"IsosClient",
10+
"IsosPageResult",
11+
]

0 commit comments

Comments
 (0)