Skip to content

Commit

Permalink
added arbitrary_types_allowed=True to pydantic model config
Browse files Browse the repository at this point in the history
  • Loading branch information
fullerzz committed Nov 9, 2024
1 parent 00af6da commit 56dd3af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/loamy/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import aiohttp
from loguru import logger
from pydantic import BaseModel
from pydantic import BaseModel, ConfigDict

# Disable the logger. If a consuming app wishes to see loamy's logs, they can enable() it again.
logger.disable("loamy")
Expand Down Expand Up @@ -36,6 +36,8 @@ class RequestResponse(BaseModel):
Class containing information about the result of an HTTP request.
"""

model_config = ConfigDict(arbitrary_types_allowed=True)

request_map: RequestMap
status_code: int
body: dict | None = None
Expand Down

0 comments on commit 56dd3af

Please sign in to comment.