Skip to content

Commit 3a2da9e

Browse files
authored
Merge pull request #2810 from hot-patch-is_str
chore: Add back samtranslator.model.types.is_str for compatibility
2 parents 19f475e + bfc144e commit 3a2da9e

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

samtranslator/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.58.0"
1+
__version__ = "1.58.1"

samtranslator/model/types.py

+12
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,15 @@ def validate(value: Any, should_raise: bool = False) -> bool:
135135
return True
136136

137137
return validate
138+
139+
140+
def is_str() -> Validator:
141+
"""
142+
For compatibility reason, we need this `is_str()` as it
143+
is consumed by old versions of AWS SAM CLI (<1.71.0).
144+
145+
Related PRs/commits:
146+
https://github.com/aws/serverless-application-model/pull/2752
147+
https://github.com/aws/aws-sam-cli/commit/d18f57c5f39273a04fb582f90e6c5817a4651912
148+
"""
149+
return IS_STR

0 commit comments

Comments
 (0)