Skip to content

Commit 6082e59

Browse files
committed
chore: use lru cache for python compatibility
1 parent cba9034 commit 6082e59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sagemaker/jumpstart/accessors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def get_sagemaker_version() -> str:
4141
class JumpStartS3Accessor(object):
4242
"""Static class for storing and retrieving auxilliary s3 artifacts."""
4343

44-
@functools.cache
44+
@functools.lru_cache
4545
@staticmethod
4646
def _get_default_s3_client(region: str = JUMPSTART_DEFAULT_REGION_NAME) -> boto3.client:
4747
"""Returns default s3 client associated with the region.

0 commit comments

Comments
 (0)