Answers for "python type hint multiple return"

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
0

typing multiple types

from typing import Union


def foo(client_id: str) -> Union[list,bool]
Posted by: Guest on March-30-2020

Code answers related to "python type hint multiple return"

Python Answers by Framework

Browse Popular Code Answers by Language