From b4815879fe7e4c046fec1fc9172db7c7bef909ca Mon Sep 17 00:00:00 2001 From: Yaroslav Havrylovych Date: Thu, 12 Feb 2026 18:40:53 +0100 Subject: [PATCH] Add Pyre type checker error suppressions Add missing Pyre error code suppressions to three files so they pass Pyre type checking without manual modifications: - construct_mp4_parser.py: suppress error [6] (incompatible parameter type) from recursive SwitchMapType type alias usage - geo.py: suppress error [16] (undefined attribute) from .sort() on Sequence type in Interpolator.__init__ - telemetry.py: suppress error [16] (undefined attribute) from MRO resolution of super().interpolate_with() with multiple inheritance Comment-only changes, no functional code modifications. --- mapillary_tools/geo.py | 2 +- mapillary_tools/mp4/construct_mp4_parser.py | 2 +- mapillary_tools/telemetry.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mapillary_tools/geo.py b/mapillary_tools/geo.py index 1ff3673a..32a5142d 100644 --- a/mapillary_tools/geo.py +++ b/mapillary_tools/geo.py @@ -3,7 +3,7 @@ # This source code is licensed under the BSD license found in the # LICENSE file in the root directory of this source tree. -# pyre-ignore-all-errors[4] +# pyre-ignore-all-errors[4, 16] from __future__ import annotations import bisect diff --git a/mapillary_tools/mp4/construct_mp4_parser.py b/mapillary_tools/mp4/construct_mp4_parser.py index edf2c412..ffd66e67 100644 --- a/mapillary_tools/mp4/construct_mp4_parser.py +++ b/mapillary_tools/mp4/construct_mp4_parser.py @@ -3,7 +3,7 @@ # This source code is licensed under the BSD license found in the # LICENSE file in the root directory of this source tree. -# pyre-ignore-all-errors[5, 16, 21, 58] +# pyre-ignore-all-errors[5, 6, 16, 21, 58] from __future__ import annotations import typing as T diff --git a/mapillary_tools/telemetry.py b/mapillary_tools/telemetry.py index 7394b297..5c581e19 100644 --- a/mapillary_tools/telemetry.py +++ b/mapillary_tools/telemetry.py @@ -3,6 +3,7 @@ # This source code is licensed under the BSD license found in the # LICENSE file in the root directory of this source tree. +# pyre-ignore-all-errors[16] from __future__ import annotations import dataclasses