Код: Выделить всё
def a():
x: int = 1
Код: Выделить всё
> a.__annotations__
{}
Я использую Python 3.10.7.
Подробнее здесь: https://stackoverflow.com/questions/766 ... -in-python
Код: Выделить всё
def a():
x: int = 1
Код: Выделить всё
> a.__annotations__
{}