When I try using a decorator that I defined in another package, mypy fails with the error message Untyped decorator makes function "my_method" untyped. How should I define my decorator to make sure this passes?
from mypackage import mydecorator
@mydecorator
def my_method(date: int) -> str:
...