Skip to content

Commit 7b4ec44

Browse files
author
Michael Brewer
committed
fix(trigger): Init with __init__
1 parent a746ddc commit 7b4ec44

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

aws_lambda_powertools/utilities/trigger/cloud_watch_logs_event.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import base64
22
import json
33
import zlib
4-
from typing import Any, Dict, List, Optional
4+
from typing import Dict, List, Optional
55

66
from aws_lambda_powertools.utilities.trigger.common import DictWrapper
77

@@ -78,10 +78,8 @@ class CloudWatchLogsEvent(dict):
7878
- https://docs.aws.amazon.com/lambda/latest/dg/services-cloudwatchlogs.html
7979
"""
8080

81-
def __init__(self, event: Dict[str, Any]):
82-
super().__init__(event)
83-
self._decompressed_logs_data = None
84-
self._json_logs_data = None
81+
_decompressed_logs_data = None
82+
_json_logs_data = None
8583

8684
@property
8785
def raw_logs_data(self) -> str:

0 commit comments

Comments
 (0)