Compare commits
5 Commits
main
...
developmen
| Author | SHA1 | Date | |
|---|---|---|---|
| e3422bafbf | |||
| 86304f9704 | |||
| 64060db61e | |||
| e94b72ce9a | |||
| 18393ae535 |
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
.venv/
|
||||||
|
__pycache__/
|
||||||
26
requirements.txt
Normal file
26
requirements.txt
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
aiohappyeyeballs==2.6.1
|
||||||
|
aiohttp==3.13.2
|
||||||
|
aiohttp-jinja2==1.6
|
||||||
|
aiosignal==1.4.0
|
||||||
|
attrs==25.4.0
|
||||||
|
click==8.3.1
|
||||||
|
frozenlist==1.8.0
|
||||||
|
idna==3.11
|
||||||
|
Jinja2==3.1.6
|
||||||
|
linkify-it-py==2.0.3
|
||||||
|
markdown-it-py==4.0.0
|
||||||
|
MarkupSafe==3.0.3
|
||||||
|
mdit-py-plugins==0.5.0
|
||||||
|
mdurl==0.1.2
|
||||||
|
msgpack==1.1.2
|
||||||
|
multidict==6.7.0
|
||||||
|
platformdirs==4.5.0
|
||||||
|
propcache==0.4.1
|
||||||
|
Pygments==2.19.2
|
||||||
|
rich==14.2.0
|
||||||
|
textual==6.7.0
|
||||||
|
textual-dev==1.8.0
|
||||||
|
textual-serve==1.1.3
|
||||||
|
typing_extensions==4.15.0
|
||||||
|
uc-micro-py==1.0.3
|
||||||
|
yarl==1.22.0
|
||||||
28
todo.py
Normal file
28
todo.py
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
class Todo:
|
||||||
|
title: str
|
||||||
|
description: str
|
||||||
|
|
||||||
|
def __init__(self, title: str, description: str) -> None:
|
||||||
|
self.title = title
|
||||||
|
self.description = description
|
||||||
|
|
||||||
|
def get_title(self) -> str:
|
||||||
|
return self.title
|
||||||
|
|
||||||
|
def get_description(self) -> str:
|
||||||
|
return self.description
|
||||||
|
|
||||||
|
|
||||||
|
def create_todo(title: str, description: str) -> Todo:
|
||||||
|
return Todo(title, description)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
todo_list: list[Todo] = []
|
||||||
|
|
||||||
|
todo_list.append(create_todo("Test", "Test Description"))
|
||||||
|
todo_list.append(create_todo("Task 2", "Task 2 Description"))
|
||||||
|
|
||||||
|
for todo in todo_list:
|
||||||
|
print(f"Title: {todo.get_title()}")
|
||||||
|
print(f"Description: {todo.get_description()}")
|
||||||
Reference in New Issue
Block a user