mirror of
https://github.com/rjNemo/graphql_python_template
synced 2026-06-06 02:26:47 +00:00
14 lines
372 B
Python
14 lines
372 B
Python
from uuid import uuid4
|
|
|
|
|
|
class Todo:
|
|
def __init__(self,
|
|
todo_id: str = None,
|
|
title: str = '',
|
|
is_done: bool = False):
|
|
self.todo_id = todo_id or str(uuid4())
|
|
self.title = title
|
|
self.is_done = is_done
|
|
|
|
def __repr__(self):
|
|
return f"Todo: {self.todo_id}, {self.title}, {self.is_done}"
|