Skip to content

Commit 054023a

Browse files
committed
Typing fix for Python3.8 compatibility
1 parent 76471b3 commit 054023a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mergin/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import typing
1818
import warnings
1919

20-
from .common import ClientError, LoginError, InvalidProject, ErrorCode
20+
from .common import ClientError, LoginError
2121
from .merginproject import MerginProject
2222
from .client_pull import (
2323
download_file_finalize,

mergin/editor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from itertools import filterfalse
2-
from typing import Callable
2+
from typing import Callable, Dict, List
33

44
from .utils import is_mergin_config, is_qgis_file, is_versioned_file
55

@@ -24,7 +24,7 @@ def is_editor_enabled(mc, project_info: dict) -> bool:
2424
return server_support and project_role == EDITOR_ROLE_NAME
2525

2626

27-
def _apply_editor_filters(changes: dict[str, list[dict]]) -> dict[str, list[dict]]:
27+
def _apply_editor_filters(changes: Dict[str, List[dict]]) -> Dict[str, List[dict]]:
2828
"""
2929
Applies editor-specific filters to the changes dictionary, removing any changes to files that are not in the editor's list of allowed files.
3030
@@ -40,7 +40,7 @@ def _apply_editor_filters(changes: dict[str, list[dict]]) -> dict[str, list[dict
4040
return changes
4141

4242

43-
def filter_changes(mc, project_info: dict, changes: dict[str, list[dict]]) -> dict[str, list[dict]]:
43+
def filter_changes(mc, project_info: dict, changes: Dict[str, List[dict]]) -> Dict[str, List[dict]]:
4444
"""
4545
Filters the given changes dictionary based on the editor's enabled state.
4646

0 commit comments

Comments
 (0)