Browse Source

fix types linter (#842)

* fix types linter

* fix linter
Dinh Long Nguyen 1 year ago
parent
commit
8d19fc00e9
2 changed files with 4 additions and 2 deletions
  1. 3 1
      taipy/gui/data/data_scope.py
  2. 1 1
      taipy/gui/gui.py

+ 3 - 1
taipy/gui/data/data_scope.py

@@ -25,7 +25,9 @@ class _DataScopes:
     def __init__(self) -> None:
         self.__scopes: t.Dict[str, SimpleNamespace] = {_DataScopes._GLOBAL_ID: SimpleNamespace()}
         # { scope_name: { metadata: value } }
-        self.__scopes_metadata: t.Dict[str, t.Dict[str, str]] = {_DataScopes._GLOBAL_ID: _DataScopes._DEFAULT_METADATA.copy()}
+        self.__scopes_metadata: t.Dict[str, t.Dict[str, t.Any]] = {
+            _DataScopes._GLOBAL_ID: _DataScopes._DEFAULT_METADATA.copy()
+        }
         self.__single_client = True
 
     def set_single_client(self, value: bool) -> None:

+ 1 - 1
taipy/gui/gui.py

@@ -508,7 +508,7 @@ class Gui:
     def _get_data_scope(self) -> SimpleNamespace:
         return self.__bindings._get_data_scope()
 
-    def _get_data_scope_metadata(self) -> t.Dict[str, str]:
+    def _get_data_scope_metadata(self) -> t.Dict[str, t.Any]:
         return self.__bindings._get_data_scope_metadata()
 
     def _get_all_data_scopes(self) -> t.Dict[str, SimpleNamespace]: