SyntaxFix
Write A Post
Hire A Developer
Questions
In case anyone landed here in search of "how to specify types of multiple return values?", use Tuple[type_value1, ..., type_valueN]
Tuple[type_value1, ..., type_valueN]
from typing import Tuple def f() -> Tuple[dict, str]: a = {1: 2} b = "hello" return a, b
More info: How to annotate types of multiple return values?