From db6018bf8009a05f5722a31d2acd0a5484247f25 Mon Sep 17 00:00:00 2001 From: andrew000 <11490628+andrew000@users.noreply.github.com> Date: Fri, 26 Jul 2024 00:33:23 +0300 Subject: [PATCH] Update `FluentKey.translation` type --- src/ftl_extract/matcher.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ftl_extract/matcher.py b/src/ftl_extract/matcher.py index 58e8528..cd538f5 100644 --- a/src/ftl_extract/matcher.py +++ b/src/ftl_extract/matcher.py @@ -42,9 +42,7 @@ class FluentKey: code_path: Path key: str - translation: ( - ast.Message | ast.Comment | ast.Term | ast.GroupComment | ast.ResourceComment | ast.Junk - ) + translation: ast.EntryType path: Path = field(default=Path("_default.ftl")) locale: str | None = field(default=None) position: int | float = field(default=inf)