Skip to content

Commit 016eb6c

Browse files
committed
Fix pydantic deprecation warning
1 parent 4576e06 commit 016eb6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nanokvm/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ async def _api_request_json(
288288
async with self._request(
289289
method,
290290
path,
291-
json=(data.dict() if data is not None else None),
291+
json=(data.model_dump() if data is not None else None),
292292
**kwargs,
293293
) as response:
294294
try:

0 commit comments

Comments
 (0)