Skip to content

Commit

Permalink
Fix pre-commit error following bump
Browse files Browse the repository at this point in the history
Following the bump to python3.11 the pre-commit action fails with the
followin error :
"src/e3/aws/troposphere/iam/policy_statement.py:70:9: B037 Class
`__init__` methods must not return or yield and any values."
This commit fixes that
  • Loading branch information
RomaricKanyamibwa committed Jan 29, 2024
1 parent 45de119 commit 8c2a10e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/e3/aws/troposphere/iam/policy_statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def __init__(
:param principal: principal affected by the policy
:param condition: conditions for when the policy is in effect
"""
return super().__init__(
super().__init__(
action=action,
effect="Allow",
resource=resource,
Expand Down

0 comments on commit 8c2a10e

Please sign in to comment.