from typing import Callable
def decorator(f: object) -> Callable[[Callable[[int], object]], None]: ...
def f(a: int) -> None: ...
@decorator(f) # error: Argument 1 has incompatible type "Callable[[], Any]"; expected "Callable[[int], object]" [arg-type]
def something(): ...
So the error is that the function something doesn't have the right type for the decorator, but the message is quite misleading, it reads like the error is with the call to decorator and f.