void () { doTestByText(""" from typing import Tuple def make_dict() -> dict[int, str]: ... def key_func(param: Tuple[int, str]) -> int: ... def foo() -> None: my_dict = make_dict() items = my_dict.items() print(max(items, key=key_func)) """); }