Кто-нибудь знает, как правильно напечатать задание распаковки - если это вообще возможно?
Чтобы прояснить, что я имею в виду:
data = some_function_without_typehint()
x: str = data[0]
y: int = data[1]
# x and y have typehint support
x, y = data # no typehint support
# is anything like this possible in v3.8+ ?
x: str, y: int = data
x, y: str, int = data
(x, y): tuple[str, int] = data
Подробнее здесь: https://stackoverflow.com/questions/719 ... assignment