Skip to main content

typing_union

Function typing_union 

Source
pub fn typing_union(elts: &[Expr], binding: Name) -> Expr
Expand description

Format the expressions as a typing.Union-style union.

Note: It is a syntax error to have Union[] so the caller should ensure that the elts argument is nonempty.