Skip to content

Extra \n when parsing classes #165

Description

@Osso

I am getting an extra \n when parsing a class definition:

`In [61]: baron.parse("class C:\n pass")

Out[61]:
[{'decorators': [],
'fifth_formatting': [],
'first_formatting': [{'type': 'space', 'value': ' '}],
'fourth_formatting': [],
'inherit_from': [],
'name': 'C',
'parenthesis': False,
'second_formatting': [],
'sixth_formatting': [],
'third_formatting': [],
'type': 'class',
'value': [{'formatting': [],
'indent': ' ',
'type': 'endl',
'value': '\n'},
{'type': 'pass'},
{'formatting': [], 'indent': '', 'type': 'endl', 'value': '\n'}]}]
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions