Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SEPARATING_LINE does not work with dataclasses #267

Open
baolsen opened this issue May 23, 2023 · 0 comments · May be fixed by #268
Open

SEPARATING_LINE does not work with dataclasses #267

baolsen opened this issue May 23, 2023 · 0 comments · May be fixed by #268

Comments

@baolsen
Copy link

baolsen commented May 23, 2023

Using tabulate to print a list of dataclasses when one or more rows is SEPARATING_LINE, produces:

  File "....\.venv\lib\site-packages\tabulate\__init__.py", line 1451, in <listcomp>
    rows = [[getattr(row, f) for f in field_names] for row in rows ]
AttributeError: 'str' object has no attribute '<the first attribute of dataclass>'

Can be assigned to me, I have a fix.

@baolsen baolsen linked a pull request May 23, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant