mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
feat: fix linting errors
This commit is contained in:
parent
e1476bbc51
commit
57869c0739
2 changed files with 10 additions and 3 deletions
|
@ -15,7 +15,7 @@ import asyncio
|
|||
import traceback
|
||||
import uuid
|
||||
from datetime import datetime, timedelta, timezone
|
||||
from typing import Any, List, Optional, Union
|
||||
from typing import Any, List, Optional, Union, cast
|
||||
|
||||
import fastapi
|
||||
from fastapi import APIRouter, Depends, Header, HTTPException, Request, status
|
||||
|
@ -743,7 +743,7 @@ async def user_update(
|
|||
**existing_user_row.model_dump(exclude_none=True)
|
||||
)
|
||||
|
||||
existing_metadata = existing_user_row.metadata if existing_user_row else {}
|
||||
existing_metadata = cast(Dict, getattr(existing_user_row, "metadata", {}) or {})
|
||||
|
||||
non_default_values = prepare_metadata_fields(
|
||||
data=data,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue