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

fix: SAWarning: requiring to specify #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

edupo
Copy link

@edupo edupo commented Feb 24, 2022

Fixing the issue with #110.

I believe this may be a bug with SqlAlchemy when using a different base than the one defined by SQA itself... They get the attribute inherit_cache like:

inherit_cache = cls.__dict__.get("inherit_cache", None)

This returns None while just doing:

cls.inherit_cache

Does return the True they are looking for.

The workaround I propose to sqlathanor is just to override the class variable in some schema classes to avoid those warnings.

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