JoinedStr#

class astroid.nodes.JoinedStr(lineno: int | None = None, col_offset: int | None = None, parent: NodeNG | None = None, *, end_lineno: int | None = None, end_col_offset: int | None = None)[source]#

Bases: NodeNG

Represents a list of string expressions to be joined.

>>> import astroid
>>> node = astroid.extract_node('f"Format {type_}"')
>>> node
<JoinedStr l.1 at 0x7f23b2e4ed30>
get_children()[source]#

Get the child nodes below this node.

postinit(values: list[NodeNG] | None = None) None[source]#

Do some setup after initialisation.

Parameters:

value – The string expressions to be joined.

Type:

list(FormattedValue or Const)

values: list[NodeNG]#

The string expressions to be joined.

Type:

list(FormattedValue or Const)