def iter_tokens(self) -> Iterable[str]:
    'Generate tokens for this node.'
    if self.key_repr:
        (yield self.key_repr)
        (yield self.key_separator)
    if self.value_repr:
        (yield self.value_repr)
    elif (self.children is not None):
        if self.children:
            (yield self.open_brace)
            if (self.is_tuple and (len(self.children) == 1)):
                (yield from self.children[0].iter_tokens())
                (yield ',')
            else:
                for child in self.children:
                    (yield from child.iter_tokens())
                    if (not child.last):
                        (yield ', ')
            (yield self.close_brace)
        else:
            (yield self.empty)
Generate tokens for this node.
def iter_tokens(self) -> Iterable[str]:
    
    if self.key_repr:
        (yield self.key_repr)
        (yield self.key_separator)
    if self.value_repr:
        (yield self.value_repr)
    elif (self.children is not None):
        if self.children:
            (yield self.open_brace)
            if (self.is_tuple and (len(self.children) == 1)):
                (yield from self.children[0].iter_tokens())
                (yield ',')
            else:
                for child in self.children:
                    (yield from child.iter_tokens())
                    if (not child.last):
                        (yield ', ')
            (yield self.close_brace)
        else:
            (yield self.empty)