core: fix tool_call function #35740
Annotations
5 errors and 1 warning
Analysing the code with our lint:
libs/core/langchain_core/messages/tool.py#L1
langchain_core/messages/tool.py:1:1: I001 Import block is un-sorted or un-formatted
|
Analysing the code with our lint:
libs/core/langchain_core/messages/tool.py#L215
langchain_core/messages/tool.py:215:5: E722 Do not use bare `except`
|
Analysing the code with our lint:
libs/core/langchain_core/messages/tool.py#L217
langchain_core/messages/tool.py:217:27: Q000 Single quotes found but double quotes preferred
|
Analysing the code with our lint:
libs/core/langchain_core/messages/tool.py#L219
langchain_core/messages/tool.py:219:13: SIM105 Use `contextlib.suppress(json.JSONDecodeError)` instead of `try`-`except`-`pass`
|
Analysing the code with our lint
Process completed with exit code 2.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading