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 aba802c commit 5198f28Copy full SHA for 5198f28
src/sagemaker/workflow/utilities.py
@@ -21,7 +21,15 @@
21
import hashlib
22
from urllib.parse import unquote, urlparse
23
from contextlib import contextmanager
24
-from _hashlib import HASH as Hash
+
25
+try:
26
+ # _hashlib is an internal python module, and is not present in
27
+ # statically linked interpreters.
28
+ from _hashlib import HASH as Hash
29
+except ImportError:
30
+ import typing
31
32
+ Hash = typing.Any
33
34
from sagemaker.utils import base_from_name
35
from sagemaker.workflow.parameters import Parameter
0 commit comments