Код: Выделить всё
def f(x):
print([y for y in x])
f({'a': 0, 'b': 1}.values()) #prints [0, 1]
Итак, как указать dict_values в подсказках типа?
Подробнее здесь: https://stackoverflow.com/questions/580 ... type-hints
Код: Выделить всё
def f(x):
print([y for y in x])
f({'a': 0, 'b': 1}.values()) #prints [0, 1]