Skip to content

Commit b5015a6

Browse files
Clean up imports in solution.py
Removed unused TypeVar import for compatibility with Python 3.12.
1 parent 6cab7ca commit b5015a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

challenges/advanced-overload-literal/solution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
foo is a function that:
55
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.
66
"""
7-
from typing import Any, Literal, overload, TypeVar
7+
from typing import Any, Literal, overload
88

99
# Before 3.12 you have to write:
1010
# T = TypeVar('T')

0 commit comments

Comments
 (0)