Skip to content

Commit 309c38d

Browse files
committed
Set 1.0 as deprecation version
1 parent acea1ce commit 309c38d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

libs/core/langchain_core/language_models/chat_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1594,7 +1594,7 @@ async def apredict_messages(
15941594
def _llm_type(self) -> str:
15951595
"""Return type of chat model."""
15961596

1597-
@deprecated("0.3.61", alternative="asdict", removal="1.0")
1597+
@deprecated("1.0", alternative="asdict", removal="2.0")
15981598
@override
15991599
def dict(self, **kwargs: Any) -> builtins.dict[str, Any]:
16001600
return self.asdict()

libs/core/langchain_core/language_models/llms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,7 @@ def __str__(self) -> str:
14361436
def _llm_type(self) -> str:
14371437
"""Return type of llm."""
14381438

1439-
@deprecated("0.3.61", alternative="asdict", removal="1.0")
1439+
@deprecated("1.0", alternative="asdict", removal="2.0")
14401440
@override
14411441
def dict(self, **kwargs: Any) -> builtins.dict[str, Any]:
14421442
return self.asdict()

libs/core/langchain_core/output_parsers/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def _type(self) -> str:
330330
)
331331
raise NotImplementedError(msg)
332332

333-
@deprecated("0.3.61", alternative="asdict", removal="1.0")
333+
@deprecated("1.0", alternative="asdict", removal="2.0")
334334
@override
335335
def dict(self, **kwargs: Any) -> builtins.dict[str, Any]:
336336
return self.asdict()

libs/core/langchain_core/prompts/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def _prompt_type(self) -> str:
344344
"""Return the prompt type key."""
345345
raise NotImplementedError
346346

347-
@deprecated("0.3.61", alternative="asdict", removal="1.0")
347+
@deprecated("1.0", alternative="asdict", removal="2.0")
348348
@override
349349
def dict(self, **kwargs: Any) -> builtins.dict[str, Any]:
350350
return self.asdict(**kwargs)

0 commit comments

Comments
 (0)