Skip to content

Commit 73ff388

Browse files
committed
fix: typing - compatibility with py3.8
closes nicolargo#2922
1 parent fbca700 commit 73ff388

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

glances/plugins/containers/engines/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
# SPDX-License-Identifier: LGPL-3.0-only
77
#
88

9-
from typing import Any, Dict, Protocol, Tuple
9+
from typing import Any, Dict, List, Protocol, Tuple
1010

1111

1212
class ContainersExtension(Protocol):
1313
def stop(self) -> None:
1414
raise NotImplementedError
1515

16-
def update(self, all_tag) -> Tuple[Dict, list[Dict[str, Any]]]:
16+
def update(self, all_tag) -> Tuple[Dict, List[Dict[str, Any]]]:
1717
raise NotImplementedError

glances/plugins/vms/engines/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
# SPDX-License-Identifier: LGPL-3.0-only
77
#
88

9-
from typing import Any, Dict, Protocol, Tuple
9+
from typing import Any, Dict, List, Protocol, Tuple
1010

1111

1212
class VmsExtension(Protocol):
1313
def stop(self) -> None:
1414
raise NotImplementedError
1515

16-
def update(self, all_tag) -> Tuple[Dict, list[Dict[str, Any]]]:
16+
def update(self, all_tag) -> Tuple[Dict, List[Dict[str, Any]]]:
1717
raise NotImplementedError

0 commit comments

Comments
 (0)