Skip to content

Commit

Permalink
Update .pre-commit-config.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
juancarlospaco committed May 4, 2024
1 parent d0ceba0 commit 9824403
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions supabase_auth/_sync/gotrue_admin_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,11 @@ def list_users(self, page: int = None, per_page: int = None) -> List[User]:
"GET",
"admin/users",
query={"page": page, "per_page": per_page},
xform=lambda data: [model_validate(User, user) for user in data["users"]]
if "users" in data
else [],
xform=lambda data: (
[model_validate(User, user) for user in data["users"]]
if "users" in data
else []
),
)

def get_user_by_id(self, uid: str) -> UserResponse:
Expand Down

0 comments on commit 9824403

Please sign in to comment.