Skip to content

Session.merge return type should be the type of the instance passed #165

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

Merged
merged 1 commit into from
Jan 8, 2021

Conversation

DeanWay
Copy link
Contributor

@DeanWay DeanWay commented Jul 21, 2020

see: https://docs.sqlalchemy.org/en/13/orm/session_api.html#sqlalchemy.orm.session.Session.merge
"""
... The state of each attribute on the source instance is then copied to the target instance. The resulting target instance is then returned by the method ...
"""

Copy link
Contributor

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@JukkaL JukkaL merged commit f31c9da into dropbox:master Jan 8, 2021
brabadu pushed a commit to brabadu/sqlalchemy-stubs that referenced this pull request Jan 15, 2021
See: https://docs.sqlalchemy.org/en/13/orm/session_api.html#sqlalchemy.orm.session.Session.merge

Quote:

... The state of each attribute on the source instance is then copied to the target instance. The 
resulting target instance is then returned by the method ...
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.

3 participants