Answers for "how to specify multiple return type in python function"

1

use python type hint for multiple return values

from typing import Tuple

def func() -> Tuple[str, str]:
    return 'a', 'b'
Posted by: Guest on May-05-2021

Code answers related to "how to specify multiple return type in python function"

Python Answers by Framework

Browse Popular Code Answers by Language