Closed jspahrsummers closed 5 years ago
I couldn't get a _MatchResult type variable to work, but maybe each callable could return its own TypeVar which are then all Unioned together to obtain the return type of match().
_MatchResult
TypeVar
Union
match()
I couldn't get a
_MatchResult
type variable to work, but maybe each callable could return its ownTypeVar
which are then allUnion
ed together to obtain the return type ofmatch()
.