Skip to content

Commit 7c45ffb

Browse files
committed
fix 3.11 support
1 parent 815f0d3 commit 7c45ffb

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ optional-dependencies = { test-tools = [
2626
"django (>4,<5)",
2727
"django-health-check",
2828
"prometheus-client (>=0.0.16)",
29+
], flagsmith-models = [
30+
"typing_extensions",
2931
] }
3032
authors = [
3133
{ name = "Matthew Elwell" },

src/flagsmith_models/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
"""
55

66
from datetime import datetime
7-
from typing import Literal, NotRequired, TypeAlias, TypedDict
7+
from typing import Literal, TypeAlias
88
from uuid import UUID
99

10+
from typing_extensions import NotRequired, TypedDict
11+
1012
FeatureType = Literal["STANDARD", "MULTIVARIATE"]
1113
"""Represents the type of a Flagsmith feature. Multivariate features include multiple weighted values."""
1214

uv.lock

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)