Skip to content

Commit cb2376a

Browse files
committed
reto #15 - python
1 parent 0041bab commit cb2376a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Roadmap/15 - ASINCRONÍA/python/KevinED11.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55

66
type Number = int | float
77
type VoidAsyncFunction = Callable[[], None]
8+
type VariadicFunction[T] = Callable[[T, ...], T]
89

910

10-
def set_function_name(func: Callable, new_name: str) -> None:
11+
def set_function_name(func: VariadicFunction, new_name: str) -> None:
1112
func.__name__ = new_name
1213

1314

14-
def get_function_name(func: Callable) -> str:
15+
def get_function_name(func: VariadicFunction) -> str:
1516
return func.__name__
1617

1718

@@ -64,6 +65,7 @@ async def main() -> None:
6465
function_c,
6566
function_b,
6667
function_a,
68+
function_d,
6769
goodbye,
6870
]
6971
)

0 commit comments

Comments
 (0)