N805 not compatible with sqlalchemy hybrids #8397
Labels
configuration
Related to settings and configuration
needs-decision
Awaiting a decision from a maintainer
Apologies for opening a new issue for what's basically part of #4604, but considering that this is one closed even though half of it has not been addressed at all, and I'm not getting any replies to my comment there, I think opening a new one makes sense - this is clearly a missing feature / bug, and it makes this particular check from ruff pretty much unusable for any codebase using SQLAlchemy's hybrid properties.
Basically I need ruff to treat either
@*.expression
as a classmethod decorator, or alternatively have a way of telling it thatsqlalchemy.ext.hybrid.hybrid_property
returns a normal property, but the method decorated with that property has a.expression
attribute that is a classmethod decorator...ruff.toml
ruff_sample.py
Output
Version
The text was updated successfully, but these errors were encountered: