Skip to content

Commit cd19ba9

Browse files
authored
core[patch]: core lint fix (#24447)
1 parent 83f3d95 commit cd19ba9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libs/core/langchain_core/tracers/log_stream.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def __init__(self, *ops: Dict[str, Any]) -> None:
102102
self.ops = list(ops)
103103

104104
def __add__(self, other: Union[RunLogPatch, Any]) -> RunLog:
105-
if type(other) == RunLogPatch:
105+
if type(other) is RunLogPatch:
106106
ops = self.ops + other.ops
107107
state = jsonpatch.apply_patch(None, copy.deepcopy(ops))
108108
return RunLog(*ops, state=state)
@@ -132,7 +132,7 @@ def __init__(self, *ops: Dict[str, Any], state: RunState) -> None:
132132
self.state = state
133133

134134
def __add__(self, other: Union[RunLogPatch, Any]) -> RunLog:
135-
if type(other) == RunLogPatch:
135+
if type(other) is RunLogPatch:
136136
ops = self.ops + other.ops
137137
state = jsonpatch.apply_patch(self.state, other.ops)
138138
return RunLog(*ops, state=state)

libs/core/tests/unit_tests/output_parsers/test_pydantic_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def test_pydantic_parser_chaining(
4848
chain = prompt | model | parser
4949

5050
res = chain.invoke({})
51-
assert type(res) == pydantic_object
51+
assert type(res) is pydantic_object
5252
assert res.f_or_c == "C"
5353
assert res.temperature == 20
5454
assert res.forecast == "Sunny"

0 commit comments

Comments
 (0)