Skip to content

AttributeRecord

Handsdown API Index / Handsdown / AST Parser / Node Records / AttributeRecord

Auto-generated documentation for handsdown.ast_parser.node_records.attribute_record module.

AttributeRecord

Show source in attribute_record.py:12

Wrapper for an ast.Assign node of a module or class attribute.

Arguments

  • node - AST node.

Signature

class AttributeRecord(NodeRecord):
    def __init__(self, node: Union[ast.Assign, ast.AnnAssign]) -> None:
        ...

See also

AttributeRecord().append_to

Show source in attribute_record.py:69

Append AttributeRecord to NodeRecord.

Signature

def append_to(self, node_record: NodeRecord) -> None:
    ...

See also

AttributeRecord().related_names

Show source in attribute_record.py:32

Set of related names.

Signature

@property
def related_names(self) -> Set[str]:
    ...

AttributeRecord().render

Show source in attribute_record.py:55

Render attribute with docstring.

Signature

def render(self) -> str:
    ...