def f(x: int = 1):
if type(x) is not f.__annotations__["x"]:
raise TypeError("Неправильный тип аргумента x!")
f.__annotations__["x"] = float
return x**2
Post #2036
1.76K
Что выведет код?