Skip to content

Commit

Permalink
merge-conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-harvey-z3q committed Jul 3, 2024
1 parent 6d4f869 commit 14d563f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions sceptre/stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,17 +281,6 @@ def _cast_parameters(
) -> Dict[str, Union[str, List[Union[str, Resolver]], Resolver]]:
"""Cast CloudFormation parameters to valid types"""

def cast_value(value: Any) -> Union[str, List[Union[str, Resolver]], Resolver]:
if isinstance(value, bool):
return "true" if value else "false"
elif isinstance(value, (int, float)):
return str(value)
elif isinstance(value, list):
return [cast_value(item) for item in value]
elif isinstance(value, Resolver):
return value
return value

def cast_value(value: Any) -> Union[str, List[Union[str, Resolver]], Resolver]:
if isinstance(value, bool):
return "true" if value else "false"
Expand Down

0 comments on commit 14d563f

Please sign in to comment.