The @ syntax is just syntactic sugar.
@decorator
def function():
print("Hello World!")
is equivalent to: def function():
print("Hello World!")
function = decorator(function)