Skip to content

Commit b4aefbd

Browse files
committed
Drop typing-extensions dependency as unnecessary
1 parent 8213eb6 commit b4aefbd

File tree

7 files changed

+9
-18
lines changed

7 files changed

+9
-18
lines changed

fluent.runtime/fluent/runtime/bundle.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
from typing import TYPE_CHECKING, Any, Callable, Union, cast
1+
from typing import TYPE_CHECKING, Any, Callable, Literal, Union, cast
22

33
import babel
44
import babel.numbers
55
import babel.plural
66
from fluent.syntax import ast as FTL
7-
from typing_extensions import Literal
87

98
from .builtins import BUILTINS
109
from .prepare import Compiler

fluent.runtime/fluent/runtime/types.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import warnings
22
from datetime import date, datetime
33
from decimal import Decimal
4-
from typing import Any, TypeVar, Union, cast
4+
from typing import Any, Literal, TypeVar, Union, cast
55

66
import attr
77
import pytz
88
from babel import Locale
99
from babel.dates import format_date, format_time, get_datetime_format, get_timezone
1010
from babel.numbers import NumberPattern, parse_pattern
11-
from typing_extensions import Literal
1211

1312
FORMAT_STYLE_DECIMAL = "decimal"
1413
FORMAT_STYLE_CURRENCY = "currency"

fluent.runtime/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ dependencies = [
77
"attrs",
88
"babel",
99
"pytz",
10-
"typing-extensions>=3.7,<5",
1110
]
1211
license = { text = "Apache-2.0" }
1312
description = "Localization library for expressive translations."

fluent.runtime/tests/test_types.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55

66
import pytz
77
from babel import Locale
8-
from fluent.runtime.types import FluentDateType, FluentNumber, fluent_date, fluent_number
8+
from fluent.runtime.types import (
9+
FluentDateType,
10+
FluentNumber,
11+
fluent_date,
12+
fluent_number,
13+
)
914

1015

1116
class TestFluentNumber(unittest.TestCase):

fluent.syntax/fluent/syntax/stream.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
from typing import Callable, Union
2-
3-
from typing_extensions import Literal
1+
from typing import Callable, Literal, Union
42

53
from .errors import ParseError
64

fluent.syntax/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
name = "fluent.syntax"
33
version = "0.19.0"
44
requires-python = ">= 3.9"
5-
dependencies = ["typing-extensions>=3.7,<5"]
65
license = { text = "Apache-2.0" }
76
description = "Localization library for expressive translations."
87
keywords = ["fluent", "localization", "l10n"]

uv.lock

Lines changed: 0 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)