Skip to content

Commit

Permalink
fix new Any errors in localization_helper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DetachHead committed Nov 14, 2024
1 parent 1568a2d commit 7fdea20
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions based_build/localization_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import json
from pathlib import Path
from typing import TYPE_CHECKING, Any, ClassVar, Dict, TypedDict, Union, cast, final
from typing import TYPE_CHECKING, ClassVar, Dict, TypedDict, Union, cast, final

from rich.highlighter import ReprHighlighter
from rich.text import Text
Expand All @@ -14,6 +14,8 @@
from typing_extensions import override

if TYPE_CHECKING:
from collections.abc import Mapping

from textual.widgets.tree import TreeNode

highlighter = ReprHighlighter()
Expand Down Expand Up @@ -41,7 +43,7 @@ def read_locfile(language: str = "en-us") -> dict[str, LocMessages]:
LOCDATA_EN_US = read_locfile()


def diff_keys(orig: dict[str, Any], comp: dict[str, Any]):
def diff_keys(orig: Mapping[str, object], comp: Mapping[str, object]):
msgs: list[str] = []
orig_set = set(orig.keys())
comp_set = set(comp.keys())
Expand Down

0 comments on commit 7fdea20

Please sign in to comment.