Skip to content

Commit e65ab64

Browse files
committed
chore: update intro for extreme-self-casting
1 parent 910603d commit e65ab64

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

challenges/extreme-self-casting/question.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""
22
TODO:
33
4-
make Fn[VnCallable] could be casted to a Callable with a Any value.
5-
you MUST NOT modify anything expect the `Fn.into_callable`'s annotation.
4+
Enhance the Fn[VnCallable].into_callable method to return a Callable with an additional Any parameter at the beginning (using Concatenate).
5+
This should preserve the remaining parts of the function signature from VnCallable (i.e., parameters and their types, excluding the suffix), as well as the return type.
66
"""
77

88
from typing import Callable, TypeVar, Generic, Any, assert_type

challenges/extreme-self-casting/solution.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""
22
TODO:
33
4-
make Fn[VnCallable] could be casted to a Callable with a Any value.
5-
you MUST NOT modify anything expect the `Fn.into_callable`'s annotation.
4+
Enhance the Fn[VnCallable].into_callable method to return a Callable with an additional Any parameter at the beginning (using Concatenate).
5+
This should preserve the remaining parts of the function signature from VnCallable (i.e., parameters and their types, excluding the suffix), as well as the return type.
66
"""
77

88
from typing import Callable, Concatenate, ParamSpec, TypeVar, Generic, Any, assert_type

0 commit comments

Comments
 (0)