fix: typing - compatibility with py3.8

closes #2922
pull/2923/head
Bharath Vignesh J K 2024-08-18 14:23:40 +05:30
parent fbca700562
commit 73ff388400
2 changed files with 4 additions and 4 deletions

View File

@ -6,12 +6,12 @@
# SPDX-License-Identifier: LGPL-3.0-only
#
from typing import Any, Dict, Protocol, Tuple
from typing import Any, Dict, List, Protocol, Tuple
class ContainersExtension(Protocol):
def stop(self) -> None:
raise NotImplementedError
def update(self, all_tag) -> Tuple[Dict, list[Dict[str, Any]]]:
def update(self, all_tag) -> Tuple[Dict, List[Dict[str, Any]]]:
raise NotImplementedError

View File

@ -6,12 +6,12 @@
# SPDX-License-Identifier: LGPL-3.0-only
#
from typing import Any, Dict, Protocol, Tuple
from typing import Any, Dict, List, Protocol, Tuple
class VmsExtension(Protocol):
def stop(self) -> None:
raise NotImplementedError
def update(self, all_tag) -> Tuple[Dict, list[Dict[str, Any]]]:
def update(self, all_tag) -> Tuple[Dict, List[Dict[str, Any]]]:
raise NotImplementedError