Skip to content

Commit 9df9d5a

Browse files
committed
Remove typing extensions to avoid dep conflicts
1 parent 889f779 commit 9df9d5a

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

morango/sync/stream/serialize.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
from django.core.serializers.json import DjangoJSONEncoder
1111
from django.db.models import Q
12-
from typing_extensions import Literal
1312

1413
from morango.models.certificates import Filter
1514
from morango.models.core import DatabaseMaxCounter
@@ -71,8 +70,14 @@ def __init__(
7170
profile: str,
7271
sync_filter: Optional[Filter] = None,
7372
dirty_only: bool = True,
74-
partition_order: Literal["asc", "desc"] = "asc",
73+
partition_order: str = "asc",
7574
):
75+
"""
76+
:param profile: The Morango model profile
77+
:param sync_filter: The Filter object for this sync
78+
:param dirty_only: Whether to filter on dirty records only
79+
:param partition_order: Controls how the filter specificity is applied, "asc" or "desc"
80+
"""
7681
self.profile = profile
7782
self.sync_filter = sync_filter
7883
self.dirty_only = dirty_only

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"djangorestframework>3.10",
3030
"django-ipware==4.0.2",
3131
"requests",
32-
"typing-extensions==4.1.1",
3332
"ifcfg",
3433
],
3534
license="MIT",

0 commit comments

Comments
 (0)