fix linting

This commit is contained in:
Sydney Runkle 2025-05-13 14:38:55 -07:00
parent 2687eb10db
commit d80d208acd
3 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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:

View File

@ -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: