We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca9c62d commit a10b29bCopy full SHA for a10b29b
todo-app/lambda_function/lambda.py
@@ -5,7 +5,7 @@
5
from fastapi.middleware.cors import CORSMiddleware
6
from mangum import Mangum
7
from pydantic import BaseModel
8
-from typing import List, Dict
+from typing import List, Dict, Optional
9
10
from datetime import datetime
11
@@ -28,7 +28,6 @@
28
dynamodb = boto3.resource("dynamodb", region_name="us-east-1")
29
table = dynamodb.Table("todo-dev")
30
31
-# Define a Pydantic model for a todo item
32
class TodoItem(BaseModel):
33
id: Optional[str] # Make 'id' optional
34
text: str
0 commit comments