How to Solve NameError: name 'wraps' is not defined -- functools

Solution: Import the 'wraps' module

To Solve the error, add the following line to the top of your code.

from functools import wraps

 

For more information:
Python functools wraps