mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-07 12:06:43 +00:00
fix linting
This commit is contained in:
parent
2687eb10db
commit
d80d208acd
@ -69,7 +69,7 @@ class AgentAction(Serializable):
|
||||
tool_input: The input to pass in to the Tool.
|
||||
log: Additional information to log about the action.
|
||||
"""
|
||||
super().__init__(tool=tool, tool_input=tool_input, log=log, **kwargs)
|
||||
super().__init__(tool=tool, tool_input=tool_input, log=log, **kwargs) # type: ignore[call-arg]
|
||||
|
||||
@classmethod
|
||||
def is_lc_serializable(cls) -> bool:
|
||||
@ -149,7 +149,7 @@ class AgentFinish(Serializable):
|
||||
|
||||
def __init__(self, return_values: dict, log: str, **kwargs: Any):
|
||||
"""Override init to support instantiation by position for backward compat."""
|
||||
super().__init__(return_values=return_values, log=log, **kwargs)
|
||||
super().__init__(return_values=return_values, log=log, **kwargs) # type: ignore[call-arg]
|
||||
|
||||
@classmethod
|
||||
def is_lc_serializable(cls) -> bool:
|
||||
|
@ -75,7 +75,7 @@ class BaseMessage(Serializable):
|
||||
Args:
|
||||
content: The string contents of the message.
|
||||
"""
|
||||
super().__init__(content=content, **kwargs)
|
||||
super().__init__(content=content, **kwargs) # type: ignore[call-arg]
|
||||
|
||||
@classmethod
|
||||
def is_lc_serializable(cls) -> bool:
|
||||
|
@ -98,7 +98,7 @@ def _get_jinja2_variables_from_template(template: str) -> set[str]:
|
||||
raise ImportError(msg) from e
|
||||
env = Environment() # noqa: S701
|
||||
ast = env.parse(template)
|
||||
return meta.find_undeclared_variables(ast)
|
||||
return meta.find_undeclared_variables(ast) # type: ignore[no-untyped-call]
|
||||
|
||||
|
||||
def mustache_formatter(template: str, /, **kwargs: Any) -> str:
|
||||
|
Loading…
Reference in New Issue
Block a user