sqlathanor icon indicating copy to clipboard operation
sqlathanor copied to clipboard

fix: SAWarning: requiring to specify

Open edupo opened this issue 3 years ago • 0 comments

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.

edupo avatar Feb 24 '22 14:02 edupo