Relative Content

Tag Archive for pythontypesmypy

Properly typing a function with Callable argument

I have an async function that takes as an input a list that can contain values of CustomType1 or CustomType2. It also takes in a function as its second argument. For now I’m just using Callable[..., Coroutine[Any, Any, CustomType3]] but I would like to properly type the function argument.