You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, I don't see a way to express this using the current type system. This is possibly something where PEP 646 can help with. For now, I will marks this as "inexpressable" and close it, but we can revisit this if and when a solution becomes available in the type system.
It seems that
singledispatch
typing is not very accurate. In particular, it does not respectTypeVar
used in the return type:Here the type of the returned value would always be revealed as
List[T]
instead of different types for different inputs.The text was updated successfully, but these errors were encountered: