Skip to content

Commit 01c4a77

Browse files
Fix: Remove function implementations to force return type to be checked. (#120)
1 parent be05f00 commit 01c4a77

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

challenges/intermediate-generic/question.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
def add(a, b):
9-
return a
9+
...
1010

1111

1212
## End of your code ##

challenges/intermediate-generic/solution.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
#
1212
#
1313
# def add(a: T, b: T) -> T:
14-
# return a
14+
# ...
1515

1616

1717
# For Python >= 3.12
1818
def add[T](a: T, b: T) -> T:
19-
return a
19+
...
2020

2121

2222
## End of your code ##

challenges/intermediate-generic2/question.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
def add(a, b):
10-
return a
10+
...
1111

1212

1313
## End of your code ##

challenges/intermediate-generic2/solution.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
#
1212
#
1313
# def add(a: T, b: T) -> T:
14-
# return a
14+
# ...
1515

1616

1717
# For Python >= 3.12
1818
def add[T: (str, int)](a: T, b: T) -> T:
19-
return a
19+
...
2020

2121

2222
## End of your code ##

challenges/intermediate-generic3/question.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
def add(a):
10-
return a
10+
...
1111

1212

1313
## End of your code ##

challenges/intermediate-generic3/solution.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
#
1212
#
1313
# def add(a: T) -> T:
14-
# return a
14+
# ...
1515

1616

1717
# For Python >= 3.12
1818
def add[T: int](a: T) -> T:
19-
return a
19+
...
2020

2121

2222
## End of your code ##

0 commit comments

Comments
 (0)