Skip to content

Commit 1727a4d

Browse files
committed
Add type hints to parse_lessons
1 parent 302f032 commit 1727a4d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ui/parse_lessons.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
CATEGORY_ORDER = ["syntax", "data_structures", "classes", "advanced"]
88

99

10-
def humanize_name(name):
10+
def humanize_name(name: str) -> str:
1111
# Convert variable_name to Variable Name
1212
return " ".join(word.capitalize() for word in name.split("_"))
1313

1414

15-
def parse_file(filepath, relative_path):
15+
def parse_file(filepath: str, relative_path: str) -> dict:
1616
with open(filepath, encoding="utf-8") as f:
1717
content = f.read()
1818

0 commit comments

Comments
 (0)