Skip to content

fix: SAWarning: requiring to specify#111

Open
edupo wants to merge 1 commit intoinsightindustry:masterfrom
edupo:fix/#110/sawarning
Open

fix: SAWarning: requiring to specify#111
edupo wants to merge 1 commit intoinsightindustry:masterfrom
edupo:fix/#110/sawarning

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