typing.Callable

  • https://stackoverflow.com/questions/37835179/how-can-i-specify-the-function-type-in-my-type-hints