Skip to content
Discussion options

You must be logged in to vote

Thanks for raising this!

I think what you're asking for is not easily doable right now. The current approach would be to replicate the rule in each subclass (which might be clearer in the first place).

We could think about changing @dy.rule to behave similarly to @dy.filter (and @classmethod). This way, one could use cls to access class attributes. We'll discuss internally if it makes sense to change the API.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mattijsdp
Comment options

Answer selected by mattijsdp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants