dub 0.24.1__py3-none-any.whl → 0.25.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,64 +1,67 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
- from .badrequest import BadRequest, BadRequestData, Code, Error, ErrorTypedDict
4
- from .conflict import (
5
- Conflict,
6
- ConflictCode,
7
- ConflictData,
8
- ConflictError,
9
- ConflictErrorTypedDict,
10
- )
11
- from .forbidden import (
12
- Forbidden,
13
- ForbiddenCode,
14
- ForbiddenData,
15
- ForbiddenError,
16
- ForbiddenErrorTypedDict,
17
- )
18
- from .internalservererror import (
19
- InternalServerError,
20
- InternalServerErrorCode,
21
- InternalServerErrorData,
22
- InternalServerErrorError,
23
- InternalServerErrorErrorTypedDict,
24
- )
25
- from .inviteexpired import (
26
- InviteExpired,
27
- InviteExpiredCode,
28
- InviteExpiredData,
29
- InviteExpiredError,
30
- InviteExpiredErrorTypedDict,
31
- )
32
- from .notfound import (
33
- NotFound,
34
- NotFoundCode,
35
- NotFoundData,
36
- NotFoundError,
37
- NotFoundErrorTypedDict,
38
- )
39
- from .ratelimitexceeded import (
40
- RateLimitExceeded,
41
- RateLimitExceededCode,
42
- RateLimitExceededData,
43
- RateLimitExceededError,
44
- RateLimitExceededErrorTypedDict,
45
- )
46
- from .sdkerror import SDKError
47
- from .unauthorized import (
48
- Unauthorized,
49
- UnauthorizedCode,
50
- UnauthorizedData,
51
- UnauthorizedError,
52
- UnauthorizedErrorTypedDict,
53
- )
54
- from .unprocessableentity import (
55
- UnprocessableEntity,
56
- UnprocessableEntityCode,
57
- UnprocessableEntityData,
58
- UnprocessableEntityError,
59
- UnprocessableEntityErrorTypedDict,
60
- )
3
+ from typing import TYPE_CHECKING
4
+ from importlib import import_module
61
5
 
6
+ if TYPE_CHECKING:
7
+ from .badrequest import BadRequest, BadRequestData, Code, Error, ErrorTypedDict
8
+ from .conflict import (
9
+ Conflict,
10
+ ConflictCode,
11
+ ConflictData,
12
+ ConflictError,
13
+ ConflictErrorTypedDict,
14
+ )
15
+ from .forbidden import (
16
+ Forbidden,
17
+ ForbiddenCode,
18
+ ForbiddenData,
19
+ ForbiddenError,
20
+ ForbiddenErrorTypedDict,
21
+ )
22
+ from .internalservererror import (
23
+ InternalServerError,
24
+ InternalServerErrorCode,
25
+ InternalServerErrorData,
26
+ InternalServerErrorError,
27
+ InternalServerErrorErrorTypedDict,
28
+ )
29
+ from .inviteexpired import (
30
+ InviteExpired,
31
+ InviteExpiredCode,
32
+ InviteExpiredData,
33
+ InviteExpiredError,
34
+ InviteExpiredErrorTypedDict,
35
+ )
36
+ from .notfound import (
37
+ NotFound,
38
+ NotFoundCode,
39
+ NotFoundData,
40
+ NotFoundError,
41
+ NotFoundErrorTypedDict,
42
+ )
43
+ from .ratelimitexceeded import (
44
+ RateLimitExceeded,
45
+ RateLimitExceededCode,
46
+ RateLimitExceededData,
47
+ RateLimitExceededError,
48
+ RateLimitExceededErrorTypedDict,
49
+ )
50
+ from .sdkerror import SDKError
51
+ from .unauthorized import (
52
+ Unauthorized,
53
+ UnauthorizedCode,
54
+ UnauthorizedData,
55
+ UnauthorizedError,
56
+ UnauthorizedErrorTypedDict,
57
+ )
58
+ from .unprocessableentity import (
59
+ UnprocessableEntity,
60
+ UnprocessableEntityCode,
61
+ UnprocessableEntityData,
62
+ UnprocessableEntityError,
63
+ UnprocessableEntityErrorTypedDict,
64
+ )
62
65
 
63
66
  __all__ = [
64
67
  "BadRequest",
@@ -108,3 +111,78 @@ __all__ = [
108
111
  "UnprocessableEntityError",
109
112
  "UnprocessableEntityErrorTypedDict",
110
113
  ]
114
+
115
+ _dynamic_imports: dict[str, str] = {
116
+ "BadRequest": ".badrequest",
117
+ "BadRequestData": ".badrequest",
118
+ "Code": ".badrequest",
119
+ "Error": ".badrequest",
120
+ "ErrorTypedDict": ".badrequest",
121
+ "Conflict": ".conflict",
122
+ "ConflictCode": ".conflict",
123
+ "ConflictData": ".conflict",
124
+ "ConflictError": ".conflict",
125
+ "ConflictErrorTypedDict": ".conflict",
126
+ "Forbidden": ".forbidden",
127
+ "ForbiddenCode": ".forbidden",
128
+ "ForbiddenData": ".forbidden",
129
+ "ForbiddenError": ".forbidden",
130
+ "ForbiddenErrorTypedDict": ".forbidden",
131
+ "InternalServerError": ".internalservererror",
132
+ "InternalServerErrorCode": ".internalservererror",
133
+ "InternalServerErrorData": ".internalservererror",
134
+ "InternalServerErrorError": ".internalservererror",
135
+ "InternalServerErrorErrorTypedDict": ".internalservererror",
136
+ "InviteExpired": ".inviteexpired",
137
+ "InviteExpiredCode": ".inviteexpired",
138
+ "InviteExpiredData": ".inviteexpired",
139
+ "InviteExpiredError": ".inviteexpired",
140
+ "InviteExpiredErrorTypedDict": ".inviteexpired",
141
+ "NotFound": ".notfound",
142
+ "NotFoundCode": ".notfound",
143
+ "NotFoundData": ".notfound",
144
+ "NotFoundError": ".notfound",
145
+ "NotFoundErrorTypedDict": ".notfound",
146
+ "RateLimitExceeded": ".ratelimitexceeded",
147
+ "RateLimitExceededCode": ".ratelimitexceeded",
148
+ "RateLimitExceededData": ".ratelimitexceeded",
149
+ "RateLimitExceededError": ".ratelimitexceeded",
150
+ "RateLimitExceededErrorTypedDict": ".ratelimitexceeded",
151
+ "SDKError": ".sdkerror",
152
+ "Unauthorized": ".unauthorized",
153
+ "UnauthorizedCode": ".unauthorized",
154
+ "UnauthorizedData": ".unauthorized",
155
+ "UnauthorizedError": ".unauthorized",
156
+ "UnauthorizedErrorTypedDict": ".unauthorized",
157
+ "UnprocessableEntity": ".unprocessableentity",
158
+ "UnprocessableEntityCode": ".unprocessableentity",
159
+ "UnprocessableEntityData": ".unprocessableentity",
160
+ "UnprocessableEntityError": ".unprocessableentity",
161
+ "UnprocessableEntityErrorTypedDict": ".unprocessableentity",
162
+ }
163
+
164
+
165
+ def __getattr__(attr_name: str) -> object:
166
+ module_name = _dynamic_imports.get(attr_name)
167
+ if module_name is None:
168
+ raise AttributeError(
169
+ f"No {attr_name} found in _dynamic_imports for module name -> {__name__} "
170
+ )
171
+
172
+ try:
173
+ module = import_module(module_name, __package__)
174
+ result = getattr(module, attr_name)
175
+ return result
176
+ except ImportError as e:
177
+ raise ImportError(
178
+ f"Failed to import {attr_name} from {module_name}: {e}"
179
+ ) from e
180
+ except AttributeError as e:
181
+ raise AttributeError(
182
+ f"Failed to get {attr_name} from {module_name}: {e}"
183
+ ) from e
184
+
185
+
186
+ def __dir__():
187
+ lazy_attrs = list(_dynamic_imports.keys())
188
+ return sorted(lazy_attrs)