Skip to content

Commit 7259061

Browse files
committed
Add complexity noqa comment to openai._map_user_prompt
Adding CachePoint handling pushed method complexity over the limit (16 > 15). Added noqa: C901 to suppress the complexity warning.
1 parent e1ab79f commit 7259061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydantic_ai_slim/pydantic_ai/models/openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1602,7 +1602,7 @@ def _map_json_schema(self, o: OutputObjectDefinition) -> responses.ResponseForma
16021602
return response_format_param
16031603

16041604
@staticmethod
1605-
async def _map_user_prompt(part: UserPromptPart) -> responses.EasyInputMessageParam:
1605+
async def _map_user_prompt(part: UserPromptPart) -> responses.EasyInputMessageParam: # noqa: C901
16061606
content: str | list[responses.ResponseInputContentParam]
16071607
if isinstance(part.content, str):
16081608
content = part.content

0 commit comments

Comments
 (0)