Skip to content
Merged
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
2 changes: 1 addition & 1 deletion challenges/advanced-overload-literal/solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
foo is a function that:
returns an interger when second argument is 1, returns a string when second argument is 2, returns a list when second argument is 3, and otherwise it returns the same type as the first argument.
Copy link

Copilot AI May 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in the docstring: "interger" should be "integer".

Suggested change
returns an interger when second argument is 1, returns a string when second argument is 2, returns a list when second argument is 3, and otherwise it returns the same type as the first argument.
returns an integer when second argument is 1, returns a string when second argument is 2, returns a list when second argument is 3, and otherwise it returns the same type as the first argument.

Copilot uses AI. Check for mistakes.
"""
from typing import Any, Literal, overload, TypeVar
from typing import Any, Literal, overload

# Before 3.12 you have to write:
# T = TypeVar('T')
Expand Down
Loading