Skip to main content

parse_py_star_annotation

Function parse_py_star_annotation 

Source
pub fn parse_py_star_annotation(s: &str) -> Result<PyExpr, PyExprError>
Expand description

Parse the annotation of a var-positional parameter — CPython’s star_annotation production ('*' bitwise_or | expression), the only place a PEP 646 unpack may appear in a signature.