core: Remove some noqa (#30855)

This commit is contained in:
Christophe Bornet
2025-04-15 19:08:40 +02:00
committed by GitHub
parent 6baf5c05a6
commit a4ca1fe0ed
3 changed files with 7 additions and 7 deletions

View File

@@ -1,7 +1,6 @@
import base64
import json
import re
import typing
from collections.abc import Sequence
from typing import Any, Callable, Optional, Union
@@ -666,9 +665,7 @@ class FakeTokenCountingModel(FakeChatModel):
self,
messages: list[BaseMessage],
tools: Optional[
Sequence[
Union[typing.Dict[str, Any], type, Callable, BaseTool] # noqa: UP006
]
Sequence[Union[dict[str, Any], type, Callable, BaseTool]]
] = None,
) -> int:
return dummy_token_counter(messages)

View File

@@ -146,7 +146,6 @@ def test_pydantic_output_parser() -> None:
)
result = pydantic_parser.parse(DEF_RESULT)
print("parse_result:", result) # noqa: T201
assert result == DEF_EXPECTED_RESULT
assert pydantic_parser.OutputType is TestModel