Код: Выделить всё
def compose[_First, _Second, _Thirt](
first: Callable[[_First], _Second],
second: Callable[[_Second], _Third],
) -> Callable[[_First], _Third]:
return lambda x: second(first(x))
Будем благодарны за любые разъяснения и пояснения!
p.s. Я использую Python 3.9–3.11
Подробнее здесь: https://stackoverflow.com/questions/792 ... efinitions