How to specify type for function parameter (Python)
How to specify type for function parameter (Python) Question: I want to restrict scope of functions that can be passed as parameter to another function. For example, to restrict functions to be only one from two specified, or from particular module, or by signature. I tried the code below but in it there is now …