Skip to content

Commit

Permalink
enhance representation
Browse files Browse the repository at this point in the history
  • Loading branch information
deepmancer committed Aug 14, 2024
1 parent 78050d3 commit 8b806d7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fastapi_auth_jwt/config/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})"

Expand Down

0 comments on commit 8b806d7

Please sign in to comment.