From a6dd6ab98448ff50f874b346a31a25ffbeea7c44 Mon Sep 17 00:00:00 2001 From: "mr. m" Date: Thu, 11 Dec 2025 13:31:44 +0100 Subject: [PATCH] fix: Move 'Any' import to the JSON with comments module, b=no-bug, c=scripts, tests --- scripts/json_with_comments.py | 2 +- scripts/run_tests.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/json_with_comments.py b/scripts/json_with_comments.py index 18eab24fc..2defb73ca 100644 --- a/scripts/json_with_comments.py +++ b/scripts/json_with_comments.py @@ -3,7 +3,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. import json - +from typing import Any class JSONWithCommentsDecoder(json.JSONDecoder): def __init__(self, **kw): diff --git a/scripts/run_tests.py b/scripts/run_tests.py index 5fdbd6d53..2e0fb516f 100644 --- a/scripts/run_tests.py +++ b/scripts/run_tests.py @@ -6,7 +6,6 @@ import os import sys import json from pathlib import Path -from typing import Any from json_with_comments import JSONWithCommentsDecoder IGNORE_PREFS_FILE_IN = os.path.join(