Skip to content

Commit f4f8fec

Browse files
committed
fix E721
1 parent 2ad7ac7 commit f4f8fec

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

integration/combination/test_function_with_cwe_dlq_generated.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test_function_with_cwe(self):
3636

3737
# checking policy action
3838
actions = dlq_policy_statement["Action"]
39-
action_list = actions if actions is list else [actions]
39+
action_list = actions if isinstance(actions, list) else [actions]
4040
self.assertEqual(len(action_list), 1, "Only one action must be in dead-letter queue policy")
4141
self.assertEqual(
4242
action_list[0], "sqs:SendMessage", "Action referenced in dead-letter queue policy must be 'sqs:SendMessage'"

integration/helpers/deployer/deployer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def create_changeset(
116116
:return:
117117
"""
118118

119-
if type == "UPDATE":
119+
if changeset_type == "UPDATE":
120120
# UsePreviousValue not valid if parameter is new
121121
summary = self._client.get_template_summary(StackName=stack_name)
122122
existing_parameters = [parameter["ParameterKey"] for parameter in summary["Parameters"]]

integration/ruff.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ lint.select = [
2424
"**/*.py" = [
2525
"S101", # Use of `assert` detected
2626
"PLR", # pylint-refactor
27-
"E721", # Use `is` and `is not` for type comparisons
2827
]

0 commit comments

Comments
 (0)