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

Remoe warning from filter column operator #2507

Closed
ziv17 opened this issue Dec 20, 2023 · 1 comment · Fixed by #2504
Closed

Remoe warning from filter column operator #2507

ziv17 opened this issue Dec 20, 2023 · 1 comment · Fixed by #2504
Assignees

Comments

@ziv17
Copy link
Collaborator

ziv17 commented Dec 20, 2023

There are two query filter settings that get warning due to using a method that is not known.
file: anyway/widgets/road_segment_widgets/top_road_segments_accidents_per_km_widget.py
method: get_top_road_segments_accidents_per_km

                .filter(AccidentMarkerView.road_segment_name.isnot(None))
                .filter(
                    AccidentMarkerView.accident_severity.in_(
                        [AccidentSeverity.FATAL.value, AccidentSeverity.SEVERE.value]
                    )
                )
@ziv17 ziv17 self-assigned this Dec 23, 2023
@ziv17 ziv17 changed the title Improve implementation: db filter of string not equal and included in list Remoe warning from filter column operator Dec 23, 2023
@ziv17
Copy link
Collaborator Author

ziv17 commented Dec 23, 2023

The implementation is completely OK. It follows the documentation. The only issue is that the type checker does not recognize the operators.

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 a pull request may close this issue.

1 participant