Continuing on the theme of chatGPT is very, very close to the truth: I didn't remember how to specify a typing.Callable only using the return type, without specifying the signature, and so I asked. The first response suggested a function with no arguments: