Skip to content

Commit f8193e8

Browse files
authored
Merge pull request #862 from MerginMaps/fix_types
Use typing compatible with python 3.8
2 parents b45a326 + 448a74e commit f8193e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Mergin/utils_auth.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from qgis.PyQt.QtWidgets import QMessageBox
2828

2929
from .mergin.client import MerginClient, ServerType, AuthTokenExpiredError
30-
from .mergin.common import ClientError, LoginError, ProjectRole
30+
from .mergin.common import ClientError, LoginError
3131
from .mergin.merginproject import MerginProject
3232

3333
from .utils import MERGIN_URL, get_qgis_proxy_config, get_plugin_version
@@ -579,7 +579,7 @@ def __init__(self, qgis_file=None):
579579
self.project_id = self.mp.project_id()
580580
self.auth_mngr = QgsApplication.authManager()
581581

582-
def get_layers_auth_ids(self) -> list[str]:
582+
def get_layers_auth_ids(self) -> typing.List[str]:
583583
"""Get the auth config IDs of the protected layers in the current project."""
584584
auth_ids = set()
585585
reg = QgsProviderRegistry.instance()
@@ -592,7 +592,7 @@ def get_layers_auth_ids(self) -> list[str]:
592592
auth_ids.add(auth_id)
593593
return list(auth_ids)
594594

595-
def get_auth_config_hash(self, auth_ids: list[str]) -> str:
595+
def get_auth_config_hash(self, auth_ids: typing.List[str]) -> str:
596596
"""
597597
Generates a stable hash from the decrypted content of the given auth IDs.
598598
This allows us to detect config changes regardless of random encryption salts in the encrypted XML file.

0 commit comments

Comments
 (0)