Skip to content

save has no return value #530

Answered by roman-right
hgalytoby asked this question in Question
Discussion options

You must be logged in to vote

Hello.
I can explain. In 1.17 save used insert and replace under the hood. Both return the instance. In 1.18 it uses update, which returns None. But in general yes, I see this inconsistency. Probably it would be better to return the instance in all the changing methods. I'll think about this and it will be fixed.

@Abashinos, about semver :) I do breaking changes in minor versions, as I reserve the major version for global architecture changes (IDK, using something instead of Pydantic or complete api rework using another approach for the collection management. Something like this), but I mention them in the changelog each time. The problem is the lib is too big to predict all the breaking …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hgalytoby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants