core: Specify code when ignoring type issue (ruff PGH003) (#30675)

See https://docs.astral.sh/ruff/rules/blanket-type-ignore/
This commit is contained in:
Christophe Bornet
2025-04-11 04:23:52 +02:00
committed by GitHub
parent 68d16d8a07
commit dc19d42d37
58 changed files with 249 additions and 258 deletions

View File

@@ -229,7 +229,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
super().__init__( # type: ignore[call-arg]
variable_name=variable_name, optional=optional, **kwargs
)