Skip to content

Commit a10b29b

Browse files
author
Adetokunbo Ige
committed
chore: update policy
Signed-off-by: Adetokunbo Ige <[email protected]>
1 parent ca9c62d commit a10b29b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

todo-app/lambda_function/lambda.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from fastapi.middleware.cors import CORSMiddleware
66
from mangum import Mangum
77
from pydantic import BaseModel
8-
from typing import List, Dict
8+
from typing import List, Dict, Optional
99

1010
from datetime import datetime
1111

@@ -28,7 +28,6 @@
2828
dynamodb = boto3.resource("dynamodb", region_name="us-east-1")
2929
table = dynamodb.Table("todo-dev")
3030

31-
# Define a Pydantic model for a todo item
3231
class TodoItem(BaseModel):
3332
id: Optional[str] # Make 'id' optional
3433
text: str

0 commit comments

Comments
 (0)