From b5761de85abcccafc237db0f1865196aa32cb70c Mon Sep 17 00:00:00 2001 From: Zrekryu <145272593+zrekryu@users.noreply.github.com> Date: Sun, 28 Dec 2025 21:01:46 +0530 Subject: [PATCH 1/3] Fix class FluentBundle functions parameter typing --- fluent.runtime/fluent/runtime/bundle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluent.runtime/fluent/runtime/bundle.py b/fluent.runtime/fluent/runtime/bundle.py index 6a0f254d..a88fdab7 100644 --- a/fluent.runtime/fluent/runtime/bundle.py +++ b/fluent.runtime/fluent/runtime/bundle.py @@ -35,7 +35,7 @@ class FluentBundle: def __init__( self, locales: List[str], - functions: Union[Dict[str, Callable[[Any], "FluentType"]], None] = None, + functions: Union[Dict[str, Callable[..., "FluentType"]], None] = None, use_isolating: bool = True, ): self.locales = locales From bfeada82aff81eb6e4facd511a0262a785ac453c Mon Sep 17 00:00:00 2001 From: Zrekryu <145272593+zrekryu@users.noreply.github.com> Date: Mon, 29 Dec 2025 19:06:31 +0530 Subject: [PATCH 2/3] Make Built-in fluent functions accept arbitrary number of positional arguments --- fluent.runtime/fluent/runtime/builtins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluent.runtime/fluent/runtime/builtins.py b/fluent.runtime/fluent/runtime/builtins.py index cb16f9d8..69233271 100644 --- a/fluent.runtime/fluent/runtime/builtins.py +++ b/fluent.runtime/fluent/runtime/builtins.py @@ -6,7 +6,7 @@ DATETIME = fluent_date -BUILTINS: Dict[str, Callable[[Any], FluentType]] = { +BUILTINS: Dict[str, Callable[..., FluentType]] = { "NUMBER": NUMBER, "DATETIME": DATETIME, } From 16a046f3156a76f860bfcb818fa9d145e35d7272 Mon Sep 17 00:00:00 2001 From: Zrekryu <145272593+zrekryu@users.noreply.github.com> Date: Mon, 29 Dec 2025 22:55:06 +0530 Subject: [PATCH 3/3] Remove unused import of Any from builtins.py --- fluent.runtime/fluent/runtime/builtins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluent.runtime/fluent/runtime/builtins.py b/fluent.runtime/fluent/runtime/builtins.py index 69233271..02e817b8 100644 --- a/fluent.runtime/fluent/runtime/builtins.py +++ b/fluent.runtime/fluent/runtime/builtins.py @@ -1,4 +1,4 @@ -from typing import Any, Callable, Dict +from typing import Callable, Dict from .types import FluentType, fluent_date, fluent_number