Python type hint for returning one of two different tuples
I’m working with legacy code which returns a single tuple, but with changes will return the original tuple, or another tuple with an additional value. Basically like this:
I’m working with legacy code which returns a single tuple, but with changes will return the original tuple, or another tuple with an additional value. Basically like this: