I use the following format to document my Python code:
def my_function(param: str) -> dict:
some code
I can't figure out how to document a function passed to another function.
For example:
def my_function(my_other_function: ???) -> dict:
some code
How do I make a function annotation?