diff --git a/libs/lib/xaal/lib/devices.py b/libs/lib/xaal/lib/devices.py
index 424f6d129e4ba5e7640d7ad5eed5cadeeb8d70ed..192d979b9c33c27a04f39cca3033576f99e6ddfa 100644
--- a/libs/lib/xaal/lib/devices.py
+++ b/libs/lib/xaal/lib/devices.py
@@ -21,7 +21,7 @@
 import logging
 import time
 import typing
-from typing import Any, Optional, Union, Callable, Awaitable
+from typing import Any, Optional, Union, Callable, Awaitable, Dict
 
 from tabulate import tabulate
 
@@ -133,7 +133,7 @@ class Device(object):
         self.next_alive = 0
         # Default attributes & methods
         self.__attributes = Attributes()
-        self.methods: dict[str, MethodT] = {
+        self.methods: Dict[str, MethodT] = {
             'get_attributes': self._get_attributes,
             'get_description': self._get_description,
         }
@@ -225,7 +225,7 @@ class Device(object):
         if name in self.methods:
             del self.methods[name]
 
-    def get_methods(self) -> dict[str, MethodT]:
+    def get_methods(self) -> Dict[str, MethodT]:
         return self.methods
 
     def update_alive(self):