Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

function as parameter tpye hinting python

from typing import AnyStr, Callable

def my_function(name: AnyStr, func: Callable[[ParamType1, ParamType2, .., ParamTypeN], ReturnType]
) -> None:
	...
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #function #parameter #tpye #hinting #python
ADD COMMENT
Topic
Name
1+8 =