Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions greeting.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
def greet_user(name):

Check failure on line 1 in greeting.py

View workflow job for this annotation

GitHub Actions / ruff

ruff (ANN001)

greeting.py:1:16: ANN001 Missing type annotation for function argument `name`

Check failure on line 1 in greeting.py

View workflow job for this annotation

GitHub Actions / ruff

ruff (ANN201)

greeting.py:1:5: ANN201 Missing return type annotation for public function `greet_user` help: Add return type annotation: `str`
"""Return a greeting for the given user."""
return f"Hello, {name}! Welcome to our project."


if __name__ == "__main__":
print(greet_user("Student"))
Loading