Skip to content

Fix __repr__ returning dict instead of str in Record class#63

Merged
aredwood merged 2 commits intomasterfrom
claude/resolve-issue-44-Y992Q
Mar 17, 2026
Merged

Fix __repr__ returning dict instead of str in Record class#63
aredwood merged 2 commits intomasterfrom
claude/resolve-issue-44-Y992Q

Conversation

@aredwood
Copy link
Copy Markdown
Owner

repr must return a str, but it was returning a dict, causing a TypeError when printing records. Wrap the dict in str() to fix.

Fixes #44

claude added 2 commits March 16, 2026 22:50
__repr__ must return a str, but it was returning a dict, causing
a TypeError when printing records. Wrap the dict in str() to fix.

Fixes #44
Verify that __repr__ returns a str and that str(record) and
str(list_of_records) do not raise TypeError.
@aredwood aredwood merged commit 2dba2d9 into master Mar 17, 2026
5 checks passed
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 this pull request may close these issues.

If you print the records, it will throw error

2 participants