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

chore: do not pass *args to SQLALchemy DeclarativeBase class #511

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

behnazh-w
Copy link
Member

The __init__ function in SQAlchemy's DeclarativeBase class does not take positional arguments. The Repository ORM mapping however passes *args to DeclarativeBase, which is not correct. So far we haven't run into any issues because we always pass keyword arguments while initializing Repository instances.

This PR fixes this issue by not passing *args to the parent DeclarativeBase class.

@behnazh-w behnazh-w requested a review from tromai as a code owner October 12, 2023 04:31
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Oct 12, 2023
@behnazh-w behnazh-w force-pushed the fix-repository-orm-args branch from f3f995c to c202e98 Compare October 20, 2023 06:33
@behnazh-w behnazh-w merged commit 5847c58 into staging Oct 24, 2023
8 checks passed
@behnazh-w behnazh-w deleted the fix-repository-orm-args branch October 27, 2023 06:04
art1f1c3R pushed a commit that referenced this pull request Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants