How can I specify the type hint of a variable as a function type? (See also: PEP 483.)
import typing
def my_function(func: typing.Function):
func()
How can I specify the type hint of a variable as a function type? (See also: PEP 483.)
import typing
def my_function(func: typing.Function):
func()