I am think best way to mark a func as deprecated is this:
from typing_extensions import deprecated @deprecated(message="Reason") def func1(): pass