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.
mypy error on default argument with a concrete type for a generically typed argument
I have the following python code:
How to type hint an abstractmethod property as optional and make mypy happy?
This code: