Skip to content

Commit

Permalink
format file
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinZZ committed Jun 1, 2023
1 parent 59670c0 commit 6e3c31a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions samtranslator/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def assign_tags(self, tags: Dict[str, Any]) -> None:
There are CFN resources that do not follow the assumption such as 'AWS::Backup::Framework'
We may need to modify the code to account for thia scenario in the future. We could do this
by function overriding this function in the class definition of that resource. An example
by function overriding this function in the class definition of that resource. An example
is provided in 'AWS::ApiGatewayV2::Api'
:param tags: Dictionary of tags to be assigned to the resource
Expand Down Expand Up @@ -557,7 +557,7 @@ def propagate_tags(
resources: List[Resource], tags: Optional[Dict[str, Any]], propagate_tags: Optional[bool] = False
) -> None:
"""
Propagates tags to the resources.
Propagates tags to the resources.
:param propagate_tags: Whether we should pass the tags to generated resources.
:param resources: List of generated resources
Expand Down
12 changes: 6 additions & 6 deletions samtranslator/model/apigatewayv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ class ApiGatewayV2HttpApi(Resource):
Tags: Optional[PassThrough]

def assign_tags(self, tags: Dict[str, Any]) -> None:
""" Overriding default 'assign_tags' function in Resource class
"""Overriding default 'assign_tags' function in Resource class
Function to assign tags to the resource
:param tags: Tags to be assigned to the resource
"""
if tags is not None and "Tags" in self.property_types:
self.Tags = tags
Expand All @@ -57,11 +57,11 @@ class ApiGatewayV2Stage(Resource):
Tags: Optional[PassThrough]

def assign_tags(self, tags: Dict[str, Any]) -> None:
""" Overriding default 'assign_tags' function in Resource class
"""Overriding default 'assign_tags' function in Resource class
Function to assign tags to the resource
:param tags: Tags to be assigned to the resource
"""
if tags is not None and "Tags" in self.property_types:
self.Tags = tags
Expand All @@ -82,11 +82,11 @@ class ApiGatewayV2DomainName(Resource):
Tags: Optional[PassThrough]

def assign_tags(self, tags: Dict[str, Any]) -> None:
""" Overriding default 'assign_tags' function in Resource class
"""Overriding default 'assign_tags' function in Resource class
Function to assign tags to the resource
:param tags: Tags to be assigned to the resource
"""
if tags is not None and "Tags" in self.property_types:
self.Tags = tags
Expand Down

0 comments on commit 6e3c31a

Please sign in to comment.