-
Notifications
You must be signed in to change notification settings - Fork 1
test: verify latest deploy #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,12 @@ | ||||||||||||||||||||||||||||||||
| from typing import Optional | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| def find_max(numbers: list[int]) -> Optional[int]: | ||||||||||||||||||||||||||||||||
| if not numbers: | ||||||||||||||||||||||||||||||||
| return None | ||||||||||||||||||||||||||||||||
| return max(numbers) | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| def flatten(nested: list[list]) -> list: | ||||||||||||||||||||||||||||||||
| return [item for sublist in nested for item in sublist] | ||||||||||||||||||||||||||||||||
|
Comment on lines
+10
to
+11
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing docstring — required by org guidelines. Also, the type hint Add a docstring and consider whether the function should validate its input or document the assumption explicitly.
Suggested change
|
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing docstrings — required by org guidelines.
All public functions must have docstrings describing what the function does, its parameters, and its return value. Both
find_max()andflatten()are missing them.