Skip to main content

decode_python_fstring_literal_segments

Function decode_python_fstring_literal_segments 

Source
pub fn decode_python_fstring_literal_segments(
    node: Node<'_>,
    source: &str,
) -> Result<Vec<String>, &'static str>
Expand description

Decode each literal segment in a selected Python f-string, omitting its interpolation expressions. The parse tree chooses the segments; this helper reads only their decoded values.