Skip to content

Fix: make read(type, amount=1, as_list=True) return a list#2

Open
aniervs wants to merge 1 commit into
jutge-org:masterfrom
aniervs:fix/read_one_as_list
Open

Fix: make read(type, amount=1, as_list=True) return a list#2
aniervs wants to merge 1 commit into
jutge-org:masterfrom
aniervs:fix/read_one_as_list

Conversation

@aniervs
Copy link
Copy Markdown

@aniervs aniervs commented Feb 12, 2026

  • add extra check on the read function, to wrap the result on a list when needed
  • updated default value for as_list to False, this fixes errors with read_many, generated with the wrapping from above
  • add tests that reflect this new behaviour (all previous tests still pass)
  • update README.md to reflect this new behaviour

- updated default value for `as_list` to `False`
- add extra check on the `read` function, to wrap the result on a list when needed
- add tests that reflect this new behaviour
- update README.md to reflect this new behaviour
@aniervs
Copy link
Copy Markdown
Author

aniervs commented Feb 12, 2026

this fixes #1

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.

1 participant