From b8b54e337c41a636a5192ac81a2633fc9e0ec581 Mon Sep 17 00:00:00 2001 From: ziv Date: Fri, 22 Dec 2023 23:46:58 +0200 Subject: [PATCH] Suppress warning for unknown sqlalchemy column filter operators --- .../top_road_segments_accidents_per_km_widget.py | 1 + anyway/widgets/widget_utils.py | 1 + 2 files changed, 2 insertions(+) diff --git a/anyway/widgets/road_segment_widgets/top_road_segments_accidents_per_km_widget.py b/anyway/widgets/road_segment_widgets/top_road_segments_accidents_per_km_widget.py index 743eb682..4bca99b0 100644 --- a/anyway/widgets/road_segment_widgets/top_road_segments_accidents_per_km_widget.py +++ b/anyway/widgets/road_segment_widgets/top_road_segments_accidents_per_km_widget.py @@ -31,6 +31,7 @@ def generate_items(self) -> None: end_time=self.request_params.end_time, ) + # noinspection PyUnresolvedReferences @staticmethod def get_top_road_segments_accidents_per_km( resolution, location_info, start_time=None, end_time=None, limit=3 diff --git a/anyway/widgets/widget_utils.py b/anyway/widgets/widget_utils.py index fae122a3..0fa7d94b 100644 --- a/anyway/widgets/widget_utils.py +++ b/anyway/widgets/widget_utils.py @@ -236,6 +236,7 @@ def sort_and_fill_gaps_for_stacked_bar( return res2 +# noinspection PyUnresolvedReferences def get_involved_counts( start_year: int, end_year: int,