From 8b806d705161e9a22b6c096a3bc379a2e825097c Mon Sep 17 00:00:00 2001 From: deepmancer Date: Wed, 14 Aug 2024 23:14:50 +0330 Subject: [PATCH] enhance representation --- fastapi_auth_jwt/config/storage.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fastapi_auth_jwt/config/storage.py b/fastapi_auth_jwt/config/storage.py index 60dd6b8..38f9b19 100644 --- a/fastapi_auth_jwt/config/storage.py +++ b/fastapi_auth_jwt/config/storage.py @@ -74,9 +74,7 @@ def __repr__(self) -> str: """ attributes = self.model_dump(exclude={"url"}, exclude_none=True) attributes["url"] = self.get_url() - attributes["storage_type"] = self.storage_type.value if not isinstance( - self.storage_type, str - ) else self.storage_type + attributes["storage_type"] = self.storage_type.value attributes_str = ", ".join([f"{k}={v}" for k, v in attributes.items()]) return f"RedisConfig({attributes_str})"