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

Add parent property to Filter #17

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

palfrey
Copy link
Contributor

@palfrey palfrey commented Mar 18, 2023

Fixes #7

So this is slightly fiddly because Filters don't have parent declared to start with, but it gets set by FilterSet. Annoyingly they don't set a default None parent, and AFAIK there's no way in types to say "this property might not be defined" (mostly probably because that's a bad idea IMHO).

OTOH, I think it's probably ok as most people are accessing them via FilterSet work?

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.

Filters have a parent property
2 participants