Skip to content

Commit 0cc6633

Browse files
Make description more clear in advanced-overload-literal (#66)
1 parent ec93778 commit 0cc6633

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

challenges/advanced-overload-literal/solution.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
"""
22
TODO:
33
4-
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, otherwise it returns inputs self.
4+
foo is a function that:
5+
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.
56
"""
67
from typing import Any, Literal, overload, TypeVar
78

0 commit comments

Comments
 (0)