Skip to content

Commit dd9c3d6

Browse files
eldritchideenmichaelbrewer
authored andcommitted
Removed unused import, added typing imports, fixed typo in example. (aws-powertools#774)
1 parent 4b4dd59 commit dd9c3d6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/utilities/parser.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ Use the decorator for fail fast scenarios where you want your Lambda function to
5757
=== "event_parser_decorator.py"
5858

5959
```python hl_lines="18"
60-
from aws_lambda_powertools.utilities.parser import event_parser, BaseModel, ValidationError
60+
from aws_lambda_powertools.utilities.parser import event_parser, BaseModel
6161
from aws_lambda_powertools.utilities.typing import LambdaContext
62+
from typing import List, Optional
6263

6364
import json
6465

@@ -80,7 +81,7 @@ Use the decorator for fail fast scenarios where you want your Lambda function to
8081
print(event.description)
8182
print(event.items)
8283

83-
order_items = [items for item in event.items]
84+
order_items = [item for item in event.items]
8485
...
8586

8687
payload = {
@@ -107,6 +108,7 @@ Use this standalone function when you want more control over the data validation
107108

108109
```python hl_lines="21 30"
109110
from aws_lambda_powertools.utilities.parser import parse, BaseModel, ValidationError
111+
from typing import List, Optional
110112

111113
class OrderItem(BaseModel):
112114
id: int

0 commit comments

Comments
 (0)