mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-24 12:01:54 +00:00
chore(core): add mypy pydantic plugin (#32604)
This helps to remove a bunch of mypy false positives.
This commit is contained in:
committed by
GitHub
parent
b470c79f1d
commit
02d6b9106b
@@ -155,9 +155,7 @@ class MessagesPlaceholder(BaseMessagePromptTemplate):
|
||||
"""
|
||||
# mypy can't detect the init which is defined in the parent class
|
||||
# b/c these are BaseModel classes.
|
||||
super().__init__( # type: ignore[call-arg]
|
||||
variable_name=variable_name, optional=optional, **kwargs
|
||||
)
|
||||
super().__init__(variable_name=variable_name, optional=optional, **kwargs)
|
||||
|
||||
def format_messages(self, **kwargs: Any) -> list[BaseMessage]:
|
||||
"""Format messages from kwargs.
|
||||
|
Reference in New Issue
Block a user