class documentation
Class representing an :class:`ast.FormattedValue` node. Represents a :pep:`498` format string.
Method | __init__ |
:param lineno: The line that this node appears on in the source code. :param col_offset: The column that this node appears on in the source code. :param parent: The parent node in the syntax tree. |
Method | postinit |
Post initialization :param value: Any expression node that will format to string :param conversion: The type of formatting. :param format_spec: Representing the formatting of the value |
Constant | CONVERSION |
Undocumented |
Instance Variable | conversion |
The type of formatting. |
Instance Variable | format |
Representing the formatting of the value, |
Instance Variable | value |
Any expression node that will format to string |
Class Variable | _fields |
Undocumented |
Class Variable | _other |
Undocumented |
Inherited from BaseNode
:
Static Method | get |
Undocumented |
Method | __contains__ |
Undocumented |
Method | accept |
Undocumented |
Method | dunder |
try to resolve the dunder method |
Method | generic |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
find the definition of `var` from outer scope recursively. Skip param will determine how many parent scope to skip :param var: variable of interest :param skip: how many layer of parent scope to skip :return:... |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
get the assigning target instance rather than scope(). See #mr68u a.b.c = node calling node.get_target_instance() will return `a.b.c.instance()` |
Method | is |
check if the given node is part of 'self' or children |
Method | iter |
Yield a tuple of ``(fieldname, value)`` for each field in ``node._fields`` that is present on *node*. |
Method | prepare |
Undocumented |
Method | scope |
return the first containing scope |
Method | statement |
Undocumented |
Instance Variable | col |
Undocumented |
Instance Variable | explicit |
Undocumented |
Instance Variable | lineno |
Undocumented |
Instance Variable | parent |
Undocumented |
Instance Variable | refer |
Undocumented |
overrides
klara.core.bases.BaseNode.__init__
:param lineno: The line that this node appears on in the source code. :param col_offset: The column that this node appears on in the source code. :param parent: The parent node in the syntax tree.
Parameters | |
lineno:Optional[ | Undocumented |
colOptional[ | Undocumented |
parent:Optional[ | Undocumented |