mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-23 11:30:37 +00:00
core: Add ruff rules G, FA, INP, AIR and ISC (#29334)
Fixes mostly for rules G. See https://docs.astral.sh/ruff/rules/#flake8-logging-format-g
This commit is contained in:
committed by
GitHub
parent
e4515f308f
commit
026de908eb
@@ -994,7 +994,7 @@ def test__convert_typed_dict_to_openai_function_fail(typed_dict: type) -> None:
|
||||
)
|
||||
def test_convert_union_type_py_39() -> None:
|
||||
@tool
|
||||
def magic_function(input: int | float) -> str:
|
||||
def magic_function(input: int | float) -> str: # noqa: FA102
|
||||
"""Compute a magic function."""
|
||||
|
||||
result = convert_to_openai_function(magic_function)
|
||||
|
Reference in New Issue
Block a user