Skip to content

Commit 6eaca57

Browse files
authored
Fix greeting function type annotations
1 parent 1cf5d40 commit 6eaca57

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎greeting.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
def greet_user(name):
1+
def greet_user(name: str) -> str:
22
"""Return a greeting for the given user."""
33
return f"Hello, {name}! Welcome to our project."
44

55

66
if __name__ == "__main__":
77
print(greet_user("Student"))
8+
print(greet_user("Alex"))

0 commit comments

Comments
 (0)