Fix generics for annotated method decorator