Skip to content

Commit a20666e

Browse files
committed
chore: formatting and linting
1 parent b0bbd0c commit a20666e

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/app/components/todos/store.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import asyncio
22
import re
3-
from datetime import datetime, UTC
3+
from datetime import UTC, datetime
44
from enum import Enum
55
from typing import List, Optional
66
from uuid import uuid4
@@ -122,7 +122,8 @@ def format_id(self, id: str) -> str:
122122

123123
def parse_todo_document(self, todo: Document) -> TodoDocument:
124124
return TodoDocument(
125-
id=todo.id, value=Todo(**from_json(todo.json, allow_partial=True)) # type: ignore
125+
id=todo.id,
126+
value=Todo(**from_json(todo.json, allow_partial=True)), # type: ignore
126127
)
127128

128129
def parse_todo_documents(self, todos: list[Document]) -> list[TodoDocument]:
@@ -182,13 +183,10 @@ async def create(self, id: Optional[str], name: Optional[str]) -> TodoDocument:
182183
id = str(uuid4())
183184

184185
todo = TodoDocument(
185-
id=self.format_id(id),
186+
id=self.format_id(id),
186187
value=Todo(
187-
name=name,
188-
status=TodoStatus.todo,
189-
created_date=dt,
190-
updated_date=dt
191-
)
188+
name=name, status=TodoStatus.todo, created_date=dt, updated_date=dt
189+
),
192190
)
193191

194192
try:

0 commit comments

Comments
 (0)