We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9551776 commit 9c5c04dCopy full SHA for 9c5c04d
ai21/clients/sagemaker/resources/sagemaker_completion.py
@@ -1,4 +1,4 @@
1
-from __future__ import annotations
+# from __future__ import annotations
2
3
from typing import List, Dict
4
tests/unittests/test_imports.py
@@ -0,0 +1,21 @@
+from ai21 import __all__
+from ai21 import * # noqa: F403
+
+EXPECTED_ALL = [
5
+ "AI21EnvConfig",
6
+ "AI21Client",
7
+ "AI21APIError",
8
+ "APITimeoutError",
9
+ "AI21Error",
10
+ "MissingApiKeyError",
11
+ "ModelPackageDoesntExistError",
12
+ "TooManyRequestsError",
13
+ "AI21BedrockClient",
14
+ "AI21SageMakerClient",
15
+ "BedrockModelID",
16
+ "SageMaker",
17
+]
18
19
20
+def test_all_imports() -> None:
21
+ assert sorted(EXPECTED_ALL) == sorted(__all__)
0 commit comments