Skip to content

Commit 8c10de0

Browse files
authored
Fix type hint for FluentBundle functions arg (#214)
1 parent e4fc3c2 commit 8c10de0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
from typing import Any, Callable, Dict
1+
from typing import Callable, Dict
22

33
from .types import FluentType, fluent_date, fluent_number
44

55
NUMBER = fluent_number
66
DATETIME = fluent_date
77

88

9-
BUILTINS: Dict[str, Callable[[Any], FluentType]] = {
9+
BUILTINS: Dict[str, Callable[..., FluentType]] = {
1010
"NUMBER": NUMBER,
1111
"DATETIME": DATETIME,
1212
}

fluent.runtime/fluent/runtime/bundle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class FluentBundle:
3535
def __init__(
3636
self,
3737
locales: List[str],
38-
functions: Union[Dict[str, Callable[[Any], "FluentType"]], None] = None,
38+
functions: Union[Dict[str, Callable[..., "FluentType"]], None] = None,
3939
use_isolating: bool = True,
4040
):
4141
self.locales = locales

0 commit comments

Comments
 (0)