How can I specify the function type in my type hints?
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() 4 Answers 4
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() 4 Answers 4