mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-14 05:56:40 +00:00
core: Remove some noqa (#30855)
This commit is contained in:
committed by
GitHub
parent
6baf5c05a6
commit
a4ca1fe0ed
@@ -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)
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user