From 37841f3ec4b8f8994496bf1cc59316fe3e76c98a Mon Sep 17 00:00:00 2001 From: ImMin5 Date: Thu, 23 Nov 2023 19:59:58 +0900 Subject: [PATCH] fix: fix hint type (#73) Signed-off-by: ImMin5 --- src/spaceone/identity/manager/domain_secret_manager.py | 1 - src/spaceone/identity/manager/user_manager.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spaceone/identity/manager/domain_secret_manager.py b/src/spaceone/identity/manager/domain_secret_manager.py index e56f6db6..65b3e237 100644 --- a/src/spaceone/identity/manager/domain_secret_manager.py +++ b/src/spaceone/identity/manager/domain_secret_manager.py @@ -94,5 +94,4 @@ def _generate_domain_secret(self, domain_id: str) -> dict: "domain_id": domain_id, "domain": domain_vo, } - print("generate domain secrer", data) return data diff --git a/src/spaceone/identity/manager/user_manager.py b/src/spaceone/identity/manager/user_manager.py index 17e38af6..bc76819b 100644 --- a/src/spaceone/identity/manager/user_manager.py +++ b/src/spaceone/identity/manager/user_manager.py @@ -1,6 +1,7 @@ import logging import re +from typing import Tuple from spaceone.core import cache from spaceone.core.manager import BaseManager @@ -134,7 +135,7 @@ def _rollback(old_data): def get_user(self, user_id: str, domain_id: str) -> User: return self.user_model.get(user_id=user_id, domain_id=domain_id) - def list_users(self, query: dict) -> tuple[list, int]: + def list_users(self, query: dict) -> Tuple[list, int]: return self.user_model.query(**query) @staticmethod