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 dcc878eCopy full SHA for dcc878e
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,20 @@
+from ai21 import __all__
+
+EXPECTED_ALL = [
+ "AI21EnvConfig",
5
+ "AI21Client",
6
+ "AI21APIError",
7
+ "APITimeoutError",
8
+ "AI21Error",
9
+ "MissingApiKeyError",
10
+ "ModelPackageDoesntExistError",
11
+ "TooManyRequestsError",
12
+ "AI21BedrockClient",
13
+ "AI21SageMakerClient",
14
+ "BedrockModelID",
15
+ "SageMaker",
16
+]
17
18
19
+def test_all_imports() -> None:
20
+ assert sorted(EXPECTED_ALL) == sorted(__all__)
0 commit comments